Skip to content

CSS named color

LightSlateGray #778899

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

LightSlateGray#778899

A medium blue-gray (#778899), lighter than slategray and about as light as gray, but with a clear cool tint.

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

Color codes for LightSlateGray

Color codes for LightSlateGray
CSS keywordlightslategray
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 aslightslategrey

Contrast and accessibility

On lightslategray, 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 lightslategray5.76:1PassPassFailPass40.1
White text on lightslategray3.64:1FailPassFailFail−69.5
Lightslategray text on white3.64:1FailPassFailFail64.0
Lightslategray text on black5.76:1PassPassFailPass−37.7

Tints and shades

Each step mixes lightslategray with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, lightslategray, 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, lightslategray'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?

LightSlateGray 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: lightslategray;
  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-lightslategray: #778899;
}
/* then use bg-lightslategray, text-lightslategray, border-lightslategray */
SwiftUI
import SwiftUI

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

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

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

Frequently asked questions

What is the hex code for lightslategray?
The hex code for lightslategray 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 lightslategray directly.
Is lightslategray a warm or cool color?
LightSlateGray 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 lightslategray?
Rotating the hue in OKLCH while keeping lightness and chroma, lightslategray'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 lightslategray?
White text on lightslategray 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 lightslategray the same as lightslategrey?
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.