#5F156C#5F156C

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

Color values

HEX#5F156C
RGBrgb(95, 21, 108)
HSLhsl(291, 67%, 25%)
HSVhsv(291, 81%, 42%)
CMYKcmyk(12%, 80.6%, 0%, 57.6%)
CIE-LABlab(23.84, 44.55, -33.58)
CIE-LCHlch(23.84, 55.79, 322.99°)
OKLaboklab(36.32% 0.1166 -0.0941)
OKLCHoklch(36.32% 0.15 321.1)
XYZxyz(7.6939, 4.0524, 14.5614)
Luminance0.0405 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F156C #226C15
analogous
#33156C #5F156C #6C154E
triadic
#5F156C #6C5F15 #156C5F
tetradic
#5F156C #6C3315 #226C15 #154E6C
square
#5F156C #6C3315 #226C15 #154E6C
split-complementary
#5F156C #4E6C15 #156C33
monochromatic
#17051A #320B39 #5F156C #8C1F9F #B929D2

Accessibility & contrast

On white

11.60
#5F156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F156C
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F156C#FFFFFF#000000##FFFFFF
##5F156C1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f156c;
/* rgb */ color: rgb(95, 21, 108);
/* oklch */ color: oklch(36.3% 0.150 321.1);
Tailwind
colors: {
  custom: {
    50: '#905c97',
    500: '#5f156c',
    950: '#000000',
  },
}
SCSS
$custom: #5f156c;
$custom-light: #905c97;
$custom-dark: #000000;
JSON
{
  "hex": "#5f156c",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 291.034,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.36319,
    "c": 0.14983,
    "h": 321.1
  },
  "luminance": 0.04052
}

Semantic roles & 50–950 ramp

primary
#5F156C
secondary
#4AA33A
accent
#EA3D57
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5F156C

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

Preview Lab → · Contrast checker → · Palette generator →

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