#5E157E#5E157E

#5E157E is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.5% C 0.166 H 312.5°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#5E157E
RGBrgb(94, 21, 126)
HSLhsl(282, 71%, 29%)
HSVhsv(282, 83%, 49%)
CMYKcmyk(25.4%, 83.3%, 0%, 50.6%)
CIE-LABlab(25.02, 48.08, -43.21)
CIE-LCHlch(25.02, 64.65, 318.05°)
OKLaboklab(37.54% 0.1121 -0.1224)
OKLCHoklch(37.54% 0.166 312.5)
XYZxyz(8.6495, 4.4226, 20.1326)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E157E #357E15
analogous
#29157E #5E157E #7E156A
triadic
#5E157E #7E5E15 #157E5E
tetradic
#5E157E #7E2915 #357E15 #156A7E
square
#5E157E #7E2915 #357E15 #156A7E
split-complementary
#5E157E #6A7E15 #157E29
monochromatic
#14041A #370C4A #5E157E #851EB2 #A831DD

Accessibility & contrast

On white

11.14
#5E157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5E157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E157E
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E157E#FFFFFF#000000##FFFFFF
##5E157E1.0011.141.8811.14
#FFFFFF11.141.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#003D7C
Tritanopia (blue-blind)
#5A304A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5e157e;
/* rgb */ color: rgb(94, 21, 126);
/* oklch */ color: oklch(37.5% 0.166 312.5);
Tailwind
colors: {
  custom: {
    50: '#905da4',
    500: '#5e157e',
    950: '#000000',
  },
}
SCSS
$custom: #5e157e;
$custom-light: #905da4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e157e",
  "rgb": {
    "r": 94,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 281.714,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37542,
    "c": 0.16596,
    "h": 312.5
  },
  "luminance": 0.04422
}

Semantic roles & 50–950 ramp

primary
#5E157E
secondary
#60B33C
accent
#EE3A71
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E157E

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

Preview Lab → · Contrast checker → · Palette generator →

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