#5F577E#5F577E

#5F577E is a mid, moderate violet. Relative luminance 0.108; OKLCH L 48.0% C 0.062 H 293.3°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#5F577E
RGBrgb(95, 87, 126)
HSLhsl(252, 18%, 42%)
HSVhsv(252, 31%, 49%)
CMYKcmyk(24.6%, 31%, 0%, 50.6%)
CIE-LABlab(39.17, 12.30, -20.78)
CIE-LCHlch(39.17, 24.14, 300.62°)
OKLaboklab(48.03% 0.0247 -0.0574)
OKLCHoklch(48.03% 0.062 293.3)
XYZxyz(11.8925, 10.7555, 21.1841)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F577E #767E57
analogous
#57637E #5F577E #73577E
triadic
#5F577E #7E5F57 #577E5F
tetradic
#5F577E #7E5763 #767E57 #577E73
square
#5F577E #7E5763 #767E57 #577E73
split-complementary
#5F577E #7E7357 #637E57
monochromatic
#282536 #443E5A #5F577E #7C749F #9E98B8

Accessibility & contrast

On white

6.66
#5F577E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5F577E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F577E
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F577E#FFFFFF#000000##FFFFFF
##5F577E1.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D5D80
Deuteranopia (green-blind)
#4E5C7D
Tritanopia (blue-blind)
#595D65
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f577e;
/* rgb */ color: rgb(95, 87, 126);
/* oklch */ color: oklch(48.0% 0.062 293.3);
Tailwind
colors: {
  custom: {
    50: '#8d86a3',
    500: '#5f577e',
    950: '#000000',
  },
}
SCSS
$custom: #5f577e;
$custom-light: #8d86a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f577e",
  "rgb": {
    "r": 95,
    "g": 87,
    "b": 126
  },
  "hsl": {
    "h": 252.308,
    "s": 18.31,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4803,
    "c": 0.06249,
    "h": 293.3
  },
  "luminance": 0.10756
}

Semantic roles & 50–950 ramp

primary
#5F577E
secondary
#A0A68B
accent
#BB6DAB
background
#F8F8FA
surface
#F0EFF4
border
#CBCACE
text
#0C0B0F
muted
#7D7C7F

Preview Lab

Preview with #5F577E

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#5F577E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva