#5E157D#5E157D

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

Color values

HEX#5E157D
RGBrgb(94, 21, 125)
HSLhsl(282, 71%, 29%)
HSVhsv(282, 83%, 49%)
CMYKcmyk(24.8%, 83.2%, 0%, 51%)
CIE-LABlab(24.94, 47.86, -42.71)
CIE-LCHlch(24.94, 64.15, 318.26°)
OKLaboklab(37.46% 0.1123 -0.1209)
OKLCHoklch(37.46% 0.165 312.9)
XYZxyz(8.5853, 4.3970, 19.7945)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E157D #347D15
analogous
#2A157D #5E157D #7D1568
triadic
#5E157D #7D5E15 #157D5E
tetradic
#5E157D #7D2A15 #347D15 #15687D
square
#5E157D #7D2A15 #347D15 #15687D
split-complementary
#5E157D #687D15 #157D2A
monochromatic
#14041A #370C49 #5E157D #851EB1 #A930DC

Accessibility & contrast

On white

11.17
#5E157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E157D
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E157D#FFFFFF#000000##FFFFFF
##5E157D1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#033D7B
Tritanopia (blue-blind)
#5A2F4A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5e157d;
/* rgb */ color: rgb(94, 21, 125);
/* oklch */ color: oklch(37.5% 0.165 312.9);
Tailwind
colors: {
  custom: {
    50: '#905da3',
    500: '#5e157d',
    950: '#000000',
  },
}
SCSS
$custom: #5e157d;
$custom-light: #905da3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e157d",
  "rgb": {
    "r": 94,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 282.115,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37461,
    "c": 0.16503,
    "h": 312.9
  },
  "luminance": 0.04397
}

Semantic roles & 50–950 ramp

primary
#5E157D
secondary
#5FB23C
accent
#EE3A70
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E157D

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

Preview Lab → · Contrast checker → · Palette generator →

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