#5E176D#5E176D

#5E176D is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.4% C 0.148 H 319.9°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#5E176D
RGBrgb(94, 23, 109)
HSLhsl(290, 65%, 26%)
HSVhsv(290, 79%, 43%)
CMYKcmyk(13.8%, 78.9%, 0%, 57.3%)
CIE-LABlab(23.99, 43.82, -34.00)
CIE-LCHlch(23.99, 55.46, 322.19°)
OKLaboklab(36.41% 0.1133 -0.0954)
OKLCHoklch(36.41% 0.148 319.9)
XYZxyz(7.6825, 4.0970, 14.8512)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E176D #266D17
analogous
#33176D #5E176D #6D1751
triadic
#5E176D #6D5E17 #176D5E
tetradic
#5E176D #6D3317 #266D17 #17516D
square
#5E176D #6D3317 #266D17 #17516D
split-complementary
#5E176D #516D17 #176D33
monochromatic
#160519 #320C3A #5E176D #8A22A0 #B52CD2

Accessibility & contrast

On white

11.54
#5E176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5E176D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E176D
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E176D#FFFFFF#000000##FFFFFF
##5E176D1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346F
Deuteranopia (green-blind)
#1F3B6B
Tritanopia (blue-blind)
#5E2941
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5e176d;
/* rgb */ color: rgb(94, 23, 109);
/* oklch */ color: oklch(36.4% 0.148 319.9);
Tailwind
colors: {
  custom: {
    50: '#8f5d97',
    500: '#5e176d',
    950: '#000000',
  },
}
SCSS
$custom: #5e176d;
$custom-light: #8f5d97;
$custom-dark: #000000;
JSON
{
  "hex": "#5e176d",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 289.535,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.36411,
    "c": 0.14809,
    "h": 319.9
  },
  "luminance": 0.04097
}

Semantic roles & 50–950 ramp

primary
#5E176D
secondary
#4FA33D
accent
#E8405D
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5E176D

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

Preview Lab → · Contrast checker → · Palette generator →

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