#5F166C#5F166C

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

Color values

HEX#5F166C
RGBrgb(95, 22, 108)
HSLhsl(291, 66%, 25%)
HSVhsv(291, 80%, 42%)
CMYKcmyk(12%, 79.6%, 0%, 57.6%)
CIE-LABlab(23.97, 44.20, -33.38)
CIE-LCHlch(23.97, 55.39, 322.94°)
OKLaboklab(36.41% 0.1157 -0.0935)
OKLCHoklch(36.41% 0.149 321)
XYZxyz(7.7127, 4.0898, 14.5676)
Luminance0.0409 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F166C #236C16
analogous
#34166C #5F166C #6C164E
triadic
#5F166C #6C5F16 #166C5F
tetradic
#5F166C #6C3416 #236C16 #164E6C
square
#5F166C #6C3416 #236C16 #164E6C
split-complementary
#5F166C #4E6C16 #166C34
monochromatic
#160519 #320C39 #5F166C #8C209F #B82BD2

Accessibility & contrast

On white

11.55
#5F166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F166C
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F166C#FFFFFF#000000##FFFFFF
##5F166C1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f166c;
/* rgb */ color: rgb(95, 22, 108);
/* oklch */ color: oklch(36.4% 0.149 321.0);
Tailwind
colors: {
  custom: {
    50: '#905c97',
    500: '#5f166c',
    950: '#000000',
  },
}
SCSS
$custom: #5f166c;
$custom-light: #905c97;
$custom-dark: #000000;
JSON
{
  "hex": "#5f166c",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 290.93,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.36406,
    "c": 0.14875,
    "h": 321
  },
  "luminance": 0.04089
}

Semantic roles & 50–950 ramp

primary
#5F166C
secondary
#4BA23C
accent
#E93F58
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5F166C

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

Preview Lab → · Contrast checker → · Palette generator →

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