#5F216B#5F216B

#5F216B is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.5% C 0.134 H 320.8°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#5F216B
RGBrgb(95, 33, 107)
HSLhsl(290, 53%, 27%)
HSVhsv(290, 69%, 42%)
CMYKcmyk(11.2%, 69.2%, 0%, 58%)
CIE-LABlab(25.51, 39.43, -30.27)
CIE-LCHlch(25.51, 49.71, 322.49°)
OKLaboklab(37.49% 0.1035 -0.0845)
OKLCHoklch(37.49% 0.134 320.8)
XYZxyz(7.9167, 4.5825, 14.3746)
Luminance0.0458 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F216B #2D6B21
analogous
#3A216B #5F216B #6B2152
triadic
#5F216B #6B5F21 #216B5F
tetradic
#5F216B #6B3A21 #2D6B21 #21526B
square
#5F216B #6B3A21 #2D6B21 #21526B
split-complementary
#5F216B #526B21 #216B3A
monochromatic
#150717 #35133C #5F216B #892F9A #AF42C5

Accessibility & contrast

On white

10.96
#5F216B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5F216B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F216B
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F216B#FFFFFF#000000##FFFFFF
##5F216B1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B386D
Deuteranopia (green-blind)
#283F69
Tritanopia (blue-blind)
#602E43
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f216b;
/* rgb */ color: rgb(95, 33, 107);
/* oklch */ color: oklch(37.5% 0.134 320.8);
Tailwind
colors: {
  custom: {
    50: '#8f6296',
    500: '#5f216b',
    950: '#000000',
  },
}
SCSS
$custom: #5f216b;
$custom-light: #8f6296;
$custom-dark: #000000;
JSON
{
  "hex": "#5f216b",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 107
  },
  "hsl": {
    "h": 290.27,
    "s": 52.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.37489,
    "c": 0.13362,
    "h": 320.8
  },
  "luminance": 0.04582
}

Semantic roles & 50–950 ramp

primary
#5F216B
secondary
#579F49
accent
#DC4C63
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050D
muted
#7E7A7E

Preview Lab

Preview with #5F216B

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

Preview Lab → · Contrast checker → · Palette generator →

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