#5E157B#5E157B

#5E157B is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.3% C 0.163 H 313.7°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#5E157B
RGBrgb(94, 21, 123)
HSLhsl(283, 71%, 28%)
HSVhsv(283, 83%, 48%)
CMYKcmyk(23.6%, 82.9%, 0%, 51.8%)
CIE-LABlab(24.79, 47.44, -41.69)
CIE-LCHlch(24.79, 63.16, 318.69°)
OKLaboklab(37.3% 0.1128 -0.1179)
OKLCHoklch(37.3% 0.163 313.7)
XYZxyz(8.4588, 4.3464, 19.1284)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E157B #327B15
analogous
#2B157B #5E157B #7B1565
triadic
#5E157B #7B5E15 #157B5E
tetradic
#5E157B #7B2B15 #327B15 #15657B
square
#5E157B #7B2B15 #327B15 #15657B
split-complementary
#5E157B #657B15 #157B2B
monochromatic
#14041A #360C47 #5E157B #861EAF #AA2FDB

Accessibility & contrast

On white

11.23
#5E157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5E157B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E157B
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E157B#FFFFFF#000000##FFFFFF
##5E157B1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#083C79
Tritanopia (blue-blind)
#5B2E49
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5e157b;
/* rgb */ color: rgb(94, 21, 123);
/* oklch */ color: oklch(37.3% 0.163 313.7);
Tailwind
colors: {
  custom: {
    50: '#905da2',
    500: '#5e157b',
    950: '#000000',
  },
}
SCSS
$custom: #5e157b;
$custom-light: #905da2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e157b",
  "rgb": {
    "r": 94,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 282.941,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37301,
    "c": 0.16318,
    "h": 313.7
  },
  "luminance": 0.04346
}

Semantic roles & 50–950 ramp

primary
#5E157B
secondary
#5DB03B
accent
#EE3A6D
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E157B

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

Preview Lab → · Contrast checker → · Palette generator →

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