#5F176A#5F176A

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

Color values

HEX#5F176A
RGBrgb(95, 23, 106)
HSLhsl(292, 64%, 25%)
HSVhsv(292, 78%, 42%)
CMYKcmyk(10.4%, 78.3%, 0%, 58.4%)
CIE-LABlab(23.96, 43.44, -32.10)
CIE-LCHlch(23.96, 54.01, 323.53°)
OKLaboklab(36.35% 0.1149 -0.0898)
OKLCHoklch(36.35% 0.146 322)
XYZxyz(7.6270, 4.0867, 14.0200)
Luminance0.0409 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F176A #226A17
analogous
#35176A #5F176A #6A174B
triadic
#5F176A #6A5F17 #176A5F
tetradic
#5F176A #6A3517 #226A17 #174B6A
square
#5F176A #6A3517 #226A17 #174B6A
split-complementary
#5F176A #4B6A17 #176A35
monochromatic
#170519 #320C38 #5F176A #8C229C #B92DCF

Accessibility & contrast

On white

11.56
#5F176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F176A
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F176A#FFFFFF#000000##FFFFFF
##5F176A1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346C
Deuteranopia (green-blind)
#233C68
Tritanopia (blue-blind)
#60273F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f176a;
/* rgb */ color: rgb(95, 23, 106);
/* oklch */ color: oklch(36.4% 0.146 322.0);
Tailwind
colors: {
  custom: {
    50: '#8f5d95',
    500: '#5f176a',
    950: '#000000',
  },
}
SCSS
$custom: #5f176a;
$custom-light: #8f5d95;
$custom-dark: #000000;
JSON
{
  "hex": "#5f176a",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 292.048,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.36355,
    "c": 0.1458,
    "h": 322
  },
  "luminance": 0.04086
}

Semantic roles & 50–950 ramp

primary
#5F176A
secondary
#4AA03D
accent
#E74057
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5F176A

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

Preview Lab → · Contrast checker → · Palette generator →

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