#5F166A#5F166A

#5F166A is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.3% C 0.147 H 322.0°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#5F166A
RGBrgb(95, 22, 106)
HSLhsl(292, 66%, 25%)
HSVhsv(292, 79%, 42%)
CMYKcmyk(10.4%, 79.2%, 0%, 58.4%)
CIE-LABlab(23.83, 43.80, -32.31)
CIE-LCHlch(23.83, 54.43, 323.59°)
OKLaboklab(36.27% 0.1159 -0.0904)
OKLCHoklch(36.27% 0.147 322)
XYZxyz(7.6075, 4.0478, 14.0135)
Luminance0.0405 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F166A #216A16
analogous
#35166A #5F166A #6A164B
triadic
#5F166A #6A5F16 #166A5F
tetradic
#5F166A #6A3516 #216A16 #164B6A
square
#5F166A #6A3516 #216A16 #164B6A
split-complementary
#5F166A #4B6A16 #166A35
monochromatic
#170519 #320B37 #5F166A #8C219D #BA2BCF

Accessibility & contrast

On white

11.61
#5F166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5F166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F166A
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F166A#FFFFFF#000000##FFFFFF
##5F166A1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#223B68
Tritanopia (blue-blind)
#60263F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f166a;
/* rgb */ color: rgb(95, 22, 106);
/* oklch */ color: oklch(36.3% 0.147 322.0);
Tailwind
colors: {
  custom: {
    50: '#905c95',
    500: '#5f166a',
    950: '#000000',
  },
}
SCSS
$custom: #5f166a;
$custom-light: #905c95;
$custom-dark: #000000;
JSON
{
  "hex": "#5f166a",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 292.143,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.36265,
    "c": 0.14693,
    "h": 322
  },
  "luminance": 0.04047
}

Semantic roles & 50–950 ramp

primary
#5F166A
secondary
#49A03B
accent
#E93F55
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5F166A

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

Preview Lab → · Contrast checker → · Palette generator →

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