#5F156F#5F156F

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

Color values

HEX#5F156F
RGBrgb(95, 21, 111)
HSLhsl(289, 68%, 26%)
HSVhsv(289, 81%, 44%)
CMYKcmyk(14.4%, 81.1%, 0%, 56.5%)
CIE-LABlab(24.06, 45.15, -35.18)
CIE-LCHlch(24.06, 57.24, 322.08°)
OKLaboklab(36.54% 0.1162 -0.0988)
OKLCHoklch(36.54% 0.153 319.6)
XYZxyz(7.8564, 4.1173, 15.4167)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F156F #256F15
analogous
#32156F #5F156F #6F1552
triadic
#5F156F #6F5F15 #156F5F
tetradic
#5F156F #6F3215 #256F15 #15526F
square
#5F156F #6F3215 #256F15 #15526F
split-complementary
#5F156F #526F15 #156F32
monochromatic
#16051A #330B3C #5F156F #8B1FA2 #B728D6

Accessibility & contrast

On white

11.52
#5F156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F156F
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F156F#FFFFFF#000000##FFFFFF
##5F156F1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#1D3C6D
Tritanopia (blue-blind)
#5F2842
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f156f;
/* rgb */ color: rgb(95, 21, 111);
/* oklch */ color: oklch(36.5% 0.153 319.6);
Tailwind
colors: {
  custom: {
    50: '#905c99',
    500: '#5f156f',
    950: '#000000',
  },
}
SCSS
$custom: #5f156f;
$custom-light: #905c99;
$custom-dark: #000000;
JSON
{
  "hex": "#5f156f",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 289.333,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.36537,
    "c": 0.15253,
    "h": 319.6
  },
  "luminance": 0.04117
}

Semantic roles & 50–950 ramp

primary
#5F156F
secondary
#4DA53A
accent
#EB3D5C
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5F156F

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

Preview Lab → · Contrast checker → · Palette generator →

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