#5E2174#5E2174

#5E2174 is a dark, vivid purple. Relative luminance 0.047; OKLCH L 38.0% C 0.142 H 315.7°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#5E2174
RGBrgb(94, 33, 116)
HSLhsl(284, 56%, 29%)
HSVhsv(284, 72%, 45%)
CMYKcmyk(19%, 71.6%, 0%, 54.5%)
CIE-LABlab(25.95, 41.13, -35.36)
CIE-LCHlch(25.95, 54.24, 319.31°)
OKLaboklab(37.96% 0.1018 -0.0994)
OKLCHoklch(37.96% 0.142 315.7)
XYZxyz(8.3118, 4.7287, 16.9945)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2174 #377421
analogous
#342174 #5E2174 #742161
triadic
#5E2174 #745E21 #21745E
tetradic
#5E2174 #743421 #377421 #216174
square
#5E2174 #743421 #377421 #216174
split-complementary
#5E2174 #617421 #217434
monochromatic
#130718 #371344 #5E2174 #852FA4 #A745CA

Accessibility & contrast

On white

10.79
#5E2174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5E2174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2174
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2174#FFFFFF#000000##FFFFFF
##5E21741.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A76
Deuteranopia (green-blind)
#203F72
Tritanopia (blue-blind)
#5C3148
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e2174;
/* rgb */ color: rgb(94, 33, 116);
/* oklch */ color: oklch(38.0% 0.142 315.7);
Tailwind
colors: {
  custom: {
    50: '#8f629c',
    500: '#5e2174',
    950: '#000000',
  },
}
SCSS
$custom: #5e2174;
$custom-light: #8f629c;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2174",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 284.096,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37962,
    "c": 0.14229,
    "h": 315.7
  },
  "luminance": 0.04728
}

Semantic roles & 50–950 ramp

primary
#5E2174
secondary
#62A749
accent
#DF4971
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050E
muted
#7E7A7E

Preview Lab

Preview with #5E2174

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

Preview Lab → · Contrast checker → · Palette generator →

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