#5F156D#5F156D

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

Color values

HEX#5F156D
RGBrgb(95, 21, 109)
HSLhsl(290, 68%, 25%)
HSVhsv(290, 81%, 43%)
CMYKcmyk(12.8%, 80.7%, 0%, 57.3%)
CIE-LABlab(23.91, 44.75, -34.12)
CIE-LCHlch(23.91, 56.27, 322.68°)
OKLaboklab(36.39% 0.1165 -0.0957)
OKLCHoklch(36.39% 0.151 320.6)
XYZxyz(7.7475, 4.0738, 14.8433)
Luminance0.0407 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F156D #236D15
analogous
#33156D #5F156D #6D154F
triadic
#5F156D #6D5F15 #156D5F
tetradic
#5F156D #6D3315 #236D15 #154F6D
square
#5F156D #6D3315 #236D15 #154F6D
split-complementary
#5F156D #4F6D15 #156D33
monochromatic
#16051A #320B3A #5F156D #8C1FA0 #B829D4

Accessibility & contrast

On white

11.57
#5F156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F156D
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F156D#FFFFFF#000000##FFFFFF
##5F156D1.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346F
Deuteranopia (green-blind)
#1F3B6B
Tritanopia (blue-blind)
#602741
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f156d;
/* rgb */ color: rgb(95, 21, 109);
/* oklch */ color: oklch(36.4% 0.151 320.6);
Tailwind
colors: {
  custom: {
    50: '#905c97',
    500: '#5f156d',
    950: '#000000',
  },
}
SCSS
$custom: #5f156d;
$custom-light: #905c97;
$custom-dark: #000000;
JSON
{
  "hex": "#5f156d",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 290.455,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.36391,
    "c": 0.15073,
    "h": 320.6
  },
  "luminance": 0.04073
}

Semantic roles & 50–950 ramp

primary
#5F156D
secondary
#4BA33A
accent
#EB3D59
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5F156D

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

Preview Lab → · Contrast checker → · Palette generator →

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