#5F166F#5F166F

#5F166F is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.6% C 0.151 H 319.6°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#5F166F
RGBrgb(95, 22, 111)
HSLhsl(289, 67%, 26%)
HSVhsv(289, 80%, 44%)
CMYKcmyk(14.4%, 80.2%, 0%, 56.5%)
CIE-LABlab(24.18, 44.80, -34.99)
CIE-LCHlch(24.18, 56.84, 322.01°)
OKLaboklab(36.62% 0.1153 -0.0982)
OKLCHoklch(36.62% 0.151 319.6)
XYZxyz(7.8751, 4.1548, 15.4230)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F166F #266F16
analogous
#32166F #5F166F #6F1652
triadic
#5F166F #6F5F16 #166F5F
tetradic
#5F166F #6F3216 #266F16 #16526F
square
#5F166F #6F3216 #266F16 #16526F
split-complementary
#5F166F #526F16 #166F32
monochromatic
#16051A #330C3C #5F166F #8B20A2 #B62BD5

Accessibility & contrast

On white

11.47
#5F166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F166F
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F166F#FFFFFF#000000##FFFFFF
##5F166F1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003571
Deuteranopia (green-blind)
#1E3C6D
Tritanopia (blue-blind)
#5F2942
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f166f;
/* rgb */ color: rgb(95, 22, 111);
/* oklch */ color: oklch(36.6% 0.151 319.6);
Tailwind
colors: {
  custom: {
    50: '#905d99',
    500: '#5f166f',
    950: '#000000',
  },
}
SCSS
$custom: #5f166f;
$custom-light: #905d99;
$custom-dark: #000000;
JSON
{
  "hex": "#5f166f",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 289.213,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.36623,
    "c": 0.15147,
    "h": 319.6
  },
  "luminance": 0.04154
}

Semantic roles & 50–950 ramp

primary
#5F166F
secondary
#4FA53C
accent
#EA3E5D
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F166F

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

Preview Lab → · Contrast checker → · Palette generator →

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