#5F166D#5F166D

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

Color values

HEX#5F166D
RGBrgb(95, 22, 109)
HSLhsl(290, 66%, 26%)
HSVhsv(290, 80%, 43%)
CMYKcmyk(12.8%, 79.8%, 0%, 57.3%)
CIE-LABlab(24.04, 44.40, -33.92)
CIE-LCHlch(24.04, 55.87, 322.62°)
OKLaboklab(36.48% 0.1156 -0.0951)
OKLCHoklch(36.48% 0.15 320.5)
XYZxyz(7.7662, 4.1113, 14.8495)
Luminance0.0411 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F166D #246D16
analogous
#33166D #5F166D #6D164F
triadic
#5F166D #6D5F16 #166D5F
tetradic
#5F166D #6D3316 #246D16 #164F6D
square
#5F166D #6D3316 #246D16 #164F6D
split-complementary
#5F166D #4F6D16 #166D33
monochromatic
#160519 #330C3A #5F166D #8B20A0 #B82BD3

Accessibility & contrast

On white

11.52
#5F166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F166D
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F166D#FFFFFF#000000##FFFFFF
##5F166D1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346F
Deuteranopia (green-blind)
#203C6B
Tritanopia (blue-blind)
#602841
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f166d;
/* rgb */ color: rgb(95, 22, 109);
/* oklch */ color: oklch(36.5% 0.150 320.5);
Tailwind
colors: {
  custom: {
    50: '#905d97',
    500: '#5f166d',
    950: '#000000',
  },
}
SCSS
$custom: #5f166d;
$custom-light: #905d97;
$custom-dark: #000000;
JSON
{
  "hex": "#5f166d",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 290.345,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.36478,
    "c": 0.14965,
    "h": 320.5
  },
  "luminance": 0.04111
}

Semantic roles & 50–950 ramp

primary
#5F166D
secondary
#4CA33C
accent
#E93E5A
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5F166D

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

Preview Lab → · Contrast checker → · Palette generator →

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