#5F166E#5F166E

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

Color values

HEX#5F166E
RGBrgb(95, 22, 110)
HSLhsl(290, 67%, 26%)
HSVhsv(290, 80%, 43%)
CMYKcmyk(13.6%, 80%, 0%, 56.9%)
CIE-LABlab(24.11, 44.60, -34.45)
CIE-LCHlch(24.11, 56.36, 322.31°)
OKLaboklab(36.55% 0.1154 -0.0967)
OKLCHoklch(36.55% 0.151 320.1)
XYZxyz(7.8203, 4.1329, 15.1346)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F166E #256E16
analogous
#33166E #5F166E #6E1651
triadic
#5F166E #6E5F16 #166E5F
tetradic
#5F166E #6E3316 #256E16 #16516E
square
#5F166E #6E3316 #256E16 #16516E
split-complementary
#5F166E #516E16 #166E33
monochromatic
#16051A #330C3B #5F166E #8B20A1 #B72AD4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F166E#FFFFFF#000000##FFFFFF
##5F166E1.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)
#003470
Deuteranopia (green-blind)
#1F3C6C
Tritanopia (blue-blind)
#5F2841
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f166e;
/* rgb */ color: rgb(95, 22, 110);
/* oklch */ color: oklch(36.5% 0.151 320.1);
Tailwind
colors: {
  custom: {
    50: '#905d98',
    500: '#5f166e',
    950: '#000000',
  },
}
SCSS
$custom: #5f166e;
$custom-light: #905d98;
$custom-dark: #000000;
JSON
{
  "hex": "#5f166e",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 289.773,
    "s": 66.667,
    "l": 25.882
  },
  "oklch": {
    "l": 0.3655,
    "c": 0.15056,
    "h": 320.1
  },
  "luminance": 0.04133
}

Semantic roles & 50–950 ramp

primary
#5F166E
secondary
#4DA43C
accent
#EA3E5B
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F166E

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

Preview Lab → · Contrast checker → · Palette generator →

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