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.
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
| CSS keyword | lightslategray |
|---|---|
| HEX | #778899 |
| RGB | rgb(119, 136, 153) |
| HSL | hsl(210, 14%, 53%) |
| HWB | hwb(210 47% 40%) |
| OKLCH | oklch(61.9% 0.032 248.4) |
| CMYK (naive, no ICC profile) | cmyk(22%, 11%, 0%, 40%) |
| Decimal | 7,833,753 |
| Hue family | Grays and black |
| Same value as | lightslategrey |
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.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on lightslategray | 5.76:1 | Pass | Pass | Fail | Pass | 40.1 |
| White text on lightslategray | 3.64:1 | Fail | Pass | Fail | Fail | −69.5 |
| Lightslategray text on white | 3.64:1 | Fail | Pass | Fail | Fail | 64.0 |
| Lightslategray text on black | 5.76:1 | Pass | Pass | Fail | Pass | −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)
- 5%
#7e8e9e - 15%
#8b9aa8 - 25%
#99a6b3 - 35%
#a7b2bd - 45%
#b4bec7 - 55%
#c2c9d1 - 65%
#cfd5db - 75%
#dde1e6 - 85%
#ebedf0 - 95%
#f8f9fa
Shades (mixed with black)
- 5%
#718191 - 15%
#657482 - 25%
#596673 - 35%
#4d5863 - 45%
#414b54 - 55%
#363d45 - 65%
#2a3036 - 75%
#1e2226 - 85%
#121417 - 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.
| Harmony | Rotation | Color |
|---|---|---|
| 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.
Code snippets
.element {
color: lightslategray;
background-color: #778899;
border-color: rgb(119 136 153);
outline-color: oklch(61.9% 0.032 248.4);
}<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 */import SwiftUI
extension Color {
static let lightslategray = Color(red: 0.467, green: 0.533, blue: 0.600)
}import androidx.compose.ui.graphics.Color
val Lightslategray = Color(0xFF778899)import 'package:flutter/material.dart';
const lightslategray = Color(0xFF778899);<!-- 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.