#5E176B#5E176B

#5E176B is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.3% C 0.146 H 320.9°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#5E176B
RGBrgb(94, 23, 107)
HSLhsl(291, 65%, 25%)
HSVhsv(291, 79%, 42%)
CMYKcmyk(12.1%, 78.5%, 0%, 58%)
CIE-LABlab(23.85, 43.41, -32.93)
CIE-LCHlch(23.85, 54.49, 322.82°)
OKLaboklab(36.27% 0.1135 -0.0922)
OKLCHoklch(36.27% 0.146 320.9)
XYZxyz(7.5760, 4.0544, 14.2906)
Luminance0.0405 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E176B #246B17
analogous
#34176B #5E176B #6B174E
triadic
#5E176B #6B5E17 #176B5E
tetradic
#5E176B #6B3417 #246B17 #174E6B
square
#5E176B #6B3417 #246B17 #174E6B
split-complementary
#5E176B #4E6B17 #176B34
monochromatic
#160519 #320C39 #5E176B #8A229D #B72DD0

Accessibility & contrast

On white

11.60
#5E176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5E176B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E176B
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E176B#FFFFFF#000000##FFFFFF
##5E176B1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346D
Deuteranopia (green-blind)
#213B69
Tritanopia (blue-blind)
#5F2840
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5e176b;
/* rgb */ color: rgb(94, 23, 107);
/* oklch */ color: oklch(36.3% 0.146 320.9);
Tailwind
colors: {
  custom: {
    50: '#8f5d96',
    500: '#5e176b',
    950: '#000000',
  },
}
SCSS
$custom: #5e176b;
$custom-light: #8f5d96;
$custom-dark: #000000;
JSON
{
  "hex": "#5e176b",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 290.714,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.36268,
    "c": 0.14625,
    "h": 320.9
  },
  "luminance": 0.04054
}

Semantic roles & 50–950 ramp

primary
#5E176B
secondary
#4CA13D
accent
#E8405A
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5E176B

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

Preview Lab → · Contrast checker → · Palette generator →

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