#5E176F#5E176F

#5E176F is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.6% C 0.150 H 318.9°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#5E176F
RGBrgb(94, 23, 111)
HSLhsl(288, 66%, 26%)
HSVhsv(288, 79%, 44%)
CMYKcmyk(15.3%, 79.3%, 0%, 56.5%)
CIE-LABlab(24.13, 44.22, -35.07)
CIE-LCHlch(24.13, 56.44, 321.59°)
OKLaboklab(36.56% 0.1131 -0.0985)
OKLCHoklch(36.56% 0.15 318.9)
XYZxyz(7.7913, 4.1406, 15.4246)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E176F #286F17
analogous
#32176F #5E176F #6F1754
triadic
#5E176F #6F5E17 #176F5E
tetradic
#5E176F #6F3217 #286F17 #17546F
square
#5E176F #6F3217 #286F17 #17546F
split-complementary
#5E176F #546F17 #176F32
monochromatic
#150519 #330C3C #5E176F #8922A2 #B32DD3

Accessibility & contrast

On white

11.49
#5E176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5E176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E176F
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E176F#FFFFFF#000000##FFFFFF
##5E176F1.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003571
Deuteranopia (green-blind)
#1D3C6D
Tritanopia (blue-blind)
#5E2A42
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5e176f;
/* rgb */ color: rgb(94, 23, 111);
/* oklch */ color: oklch(36.6% 0.150 318.9);
Tailwind
colors: {
  custom: {
    50: '#8f5d99',
    500: '#5e176f',
    950: '#000000',
  },
}
SCSS
$custom: #5e176f;
$custom-light: #8f5d99;
$custom-dark: #000000;
JSON
{
  "hex": "#5e176f",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 288.409,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.36556,
    "c": 0.14995,
    "h": 318.9
  },
  "luminance": 0.0414
}

Semantic roles & 50–950 ramp

primary
#5E176F
secondary
#51A53D
accent
#E93F60
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E176F

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

Preview Lab → · Contrast checker → · Palette generator →

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