#5E5872#5E5872

#5E5872 is a mid, muted violet. Relative luminance 0.106; OKLCH L 47.6% C 0.042 H 295.3°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#5E5872
RGBrgb(94, 88, 114)
HSLhsl(254, 13%, 40%)
HSVhsv(254, 23%, 45%)
CMYKcmyk(17.5%, 22.8%, 0%, 55.3%)
CIE-LABlab(38.85, 8.27, -13.90)
CIE-LCHlch(38.85, 16.17, 300.76°)
OKLaboklab(47.6% 0.018 -0.0379)
OKLCHoklch(47.6% 0.042 295.3)
XYZxyz(11.1424, 10.5740, 17.3703)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E5872 #6C7258
analogous
#585F72 #5E5872 #6B5872
triadic
#5E5872 #725E58 #58725E
tetradic
#5E5872 #72585F #6C7258 #58726B
square
#5E5872 #72585F #6C7258 #58726B
split-complementary
#5E5872 #726B58 #5F7258
monochromatic
#25232D #423D4F #5E5872 #7B7493 #9C96AE

Accessibility & contrast

On white

6.74
#5E5872 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#5E5872 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E5872
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E5872#FFFFFF#000000##FFFFFF
##5E58721.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#525C73
Deuteranopia (green-blind)
#535B71
Tritanopia (blue-blind)
#5A5C61
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5e5872;
/* rgb */ color: rgb(94, 88, 114);
/* oklch */ color: oklch(47.6% 0.042 295.3);
Tailwind
colors: {
  custom: {
    50: '#8c879a',
    500: '#5e5872',
    950: '#000000',
  },
}
SCSS
$custom: #5e5872;
$custom-light: #8c879a;
$custom-dark: #000000;
JSON
{
  "hex": "#5e5872",
  "rgb": {
    "r": 94,
    "g": 88,
    "b": 114
  },
  "hsl": {
    "h": 253.846,
    "s": 12.871,
    "l": 39.608
  },
  "oklch": {
    "l": 0.47601,
    "c": 0.04197,
    "h": 295.3
  },
  "luminance": 0.10574
}

Semantic roles & 50–950 ramp

primary
#5E5872
secondary
#989D89
accent
#B672A6
background
#F8F8F9
surface
#F0EFF2
border
#CBCACC
text
#0C0B0E
muted
#7D7C7E

Preview Lab

Preview with #5E5872

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

Preview Lab → · Contrast checker → · Palette generator →

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