Skip to content

CSS named color

LightSlateGrey #778899

LightSlateGrey (CSS keyword lightslategrey) has the hex code #778899 and the RGB value rgb(119, 136, 153): a medium, grayish sky blue.

LightSlateGrey#778899

British spelling of lightslategray, same value (#778899). A cool gray that suits muted UI text on light backgrounds.

The keyword lightslategray has exactly the same value (#778899); browsers treat them as the same color.

Color codes for LightSlateGrey

Color codes for LightSlateGrey
CSS keywordlightslategrey
HEX#778899
RGBrgb(119, 136, 153)
HSLhsl(210, 14%, 53%)
HWBhwb(210 47% 40%)
OKLCHoklch(61.9% 0.032 248.4)
CMYK (naive, no ICC profile)cmyk(22%, 11%, 0%, 40%)
Decimal7,833,753
Hue familyGrays and black
Same value aslightslategray

Contrast and accessibility

On lightslategrey, black text has a contrast ratio of 5.76:1 and passes AA for normal text; white text reaches 3.64:1.

WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on lightslategrey5.76:1PassPassFailPass40.1
White text on lightslategrey3.64:1FailPassFailFail−69.5
Lightslategrey text on white3.64:1FailPassFailFail64.0
Lightslategrey text on black5.76:1PassPassFailPass−37.7

Tints and shades

Each step mixes lightslategrey with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, lightslategrey, white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #7e8e9e
  2. 15%
    #8b9aa8
  3. 25%
    #99a6b3
  4. 35%
    #a7b2bd
  5. 45%
    #b4bec7
  6. 55%
    #c2c9d1
  7. 65%
    #cfd5db
  8. 75%
    #dde1e6
  9. 85%
    #ebedf0
  10. 95%
    #f8f9fa

Shades (mixed with black)

  1. 5%
    #718191
  2. 15%
    #657482
  3. 25%
    #596673
  4. 35%
    #4d5863
  5. 45%
    #414b54
  6. 55%
    #363d45
  7. 65%
    #2a3036
  8. 75%
    #1e2226
  9. 85%
    #121417
  10. 95%
    #060708

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, lightslategrey's complementary color is #938371 (close to gray), its analogous colors are #718B93 and #81849A, and its triadic partners are #987E82 and #808A75. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#938371
Analogous−30°, +30°#718b93#81849a
Triadic+120°, +240°#987e82#808a75
Split-complementary+150°, +210°#988078#8b8670

Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.

Warm or cool?

LightSlateGrey is a cool color: its hue is 210° on the HSL wheel, in the green, blue and violet range that is conventionally called cool.

Nearest named and Tailwind colors

Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
slategray#7080902.7
gray#8080803.8
cadetblue#5f9ea06.4

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
mist-500#67787c6.2
slate-500#62748e6.7
gray-500#6a72826.9

Code snippets

CSS
.element {
  color: lightslategrey;
  background-color: #778899;
  border-color: rgb(119 136 153);
  outline-color: oklch(61.9% 0.032 248.4);
}
Tailwind CSS
<div class="bg-[#778899] text-black">...</div>

/* or register it once in your CSS (Tailwind v4) */
@theme {
  --color-lightslategrey: #778899;
}
/* then use bg-lightslategrey, text-lightslategrey, border-lightslategrey */
SwiftUI
import SwiftUI

extension Color {
  static let lightslategrey = Color(red: 0.467, green: 0.533, blue: 0.600)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Lightslategrey = Color(0xFF778899)
Flutter
import 'package:flutter/material.dart';

const lightslategrey = Color(0xFF778899);
Android XML
<!-- res/values/colors.xml -->
<color name="lightslategrey">#778899</color>

Frequently asked questions

What is the hex code for lightslategrey?
The hex code for lightslategrey is #778899. The same color is rgb(119, 136, 153), hsl(210, 14%, 53%) and oklch(61.9% 0.032 248.4), and in CSS you can also write the keyword lightslategrey directly.
Is lightslategrey a warm or cool color?
LightSlateGrey is a cool color: its hue is 210° on the HSL wheel, in the green, blue and violet range that is conventionally called cool.
What colors go with lightslategrey?
Rotating the hue in OKLCH while keeping lightness and chroma, lightslategrey's complementary color is #938371 (close to gray), its analogous colors are #718B93 and #81849A, and its triadic partners are #987E82 and #808A75. For text on top, black gives the higher contrast.
Can you use white text on lightslategrey?
White text on lightslategrey has a contrast ratio of 3.64:1, which passes AA only for large text (24 px, or 18.66 px bold, and up) under WCAG 2.2. Black text reaches 5.76:1 and passes AA for normal text but not AAA. In APCA terms that is Lc −69.5 for white and Lc 40.1 for black.
Is lightslategrey the same as lightslategray?
Yes. Both keywords are #778899 (rgb(119, 136, 153)). CSS Color 4 keeps both for compatibility, so use whichever your codebase already uses.

Last reviewed by Arielton Oberek.