#5F176C#5F176C

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

Color values

HEX#5F176C
RGBrgb(95, 23, 108)
HSLhsl(291, 65%, 26%)
HSVhsv(291, 79%, 42%)
CMYKcmyk(12%, 78.7%, 0%, 57.6%)
CIE-LABlab(24.09, 43.84, -33.18)
CIE-LCHlch(24.09, 54.98, 322.88°)
OKLaboklab(36.5% 0.1147 -0.0929)
OKLCHoklch(36.5% 0.148 321)
XYZxyz(7.7322, 4.1288, 14.5741)
Luminance0.0413 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F176C #246C17
analogous
#35176C #5F176C #6C174E
triadic
#5F176C #6C5F17 #176C5F
tetradic
#5F176C #6C3517 #246C17 #174E6C
square
#5F176C #6C3517 #246C17 #174E6C
split-complementary
#5F176C #4E6C17 #176C35
monochromatic
#160519 #330C3A #5F176C #8B229E #B82CD1

Accessibility & contrast

On white

11.50
#5F176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F176C
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F176C#FFFFFF#000000##FFFFFF
##5F176C1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346E
Deuteranopia (green-blind)
#213C6A
Tritanopia (blue-blind)
#602840
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f176c;
/* rgb */ color: rgb(95, 23, 108);
/* oklch */ color: oklch(36.5% 0.148 321.0);
Tailwind
colors: {
  custom: {
    50: '#905d96',
    500: '#5f176c',
    950: '#000000',
  },
}
SCSS
$custom: #5f176c;
$custom-light: #905d96;
$custom-dark: #000000;
JSON
{
  "hex": "#5f176c",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 290.824,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.36496,
    "c": 0.14762,
    "h": 321
  },
  "luminance": 0.04128
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F176C

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

Preview Lab → · Contrast checker → · Palette generator →

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