#5F176D#5F176D

#5F176D is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.6% C 0.149 H 320.5°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#5F176D
RGBrgb(95, 23, 109)
HSLhsl(290, 65%, 26%)
HSVhsv(290, 79%, 43%)
CMYKcmyk(12.8%, 78.9%, 0%, 57.3%)
CIE-LABlab(24.16, 44.04, -33.72)
CIE-LCHlch(24.16, 55.46, 322.56°)
OKLaboklab(36.57% 0.1146 -0.0945)
OKLCHoklch(36.57% 0.149 320.5)
XYZxyz(7.7857, 4.1502, 14.8560)
Luminance0.0415 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F176D #256D17
analogous
#34176D #5F176D #6D1750
triadic
#5F176D #6D5F17 #176D5F
tetradic
#5F176D #6D3417 #256D17 #17506D
square
#5F176D #6D3417 #256D17 #17506D
split-complementary
#5F176D #506D17 #176D34
monochromatic
#160519 #330C3A #5F176D #8B22A0 #B72CD2

Accessibility & contrast

On white

11.48
#5F176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F176D
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F176D#FFFFFF#000000##FFFFFF
##5F176D1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356F
Deuteranopia (green-blind)
#203C6B
Tritanopia (blue-blind)
#5F2841
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f176d;
/* rgb */ color: rgb(95, 23, 109);
/* oklch */ color: oklch(36.6% 0.149 320.5);
Tailwind
colors: {
  custom: {
    50: '#905d97',
    500: '#5f176d',
    950: '#000000',
  },
}
SCSS
$custom: #5f176d;
$custom-light: #905d97;
$custom-dark: #000000;
JSON
{
  "hex": "#5f176d",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 290.233,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.36567,
    "c": 0.14854,
    "h": 320.5
  },
  "luminance": 0.0415
}

Semantic roles & 50–950 ramp

primary
#5F176D
secondary
#4DA33D
accent
#E8405B
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5F176D

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

Preview Lab → · Contrast checker → · Palette generator →

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