#5F216A#5F216A

#5F216A is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.4% C 0.133 H 321.3°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#5F216A
RGBrgb(95, 33, 106)
HSLhsl(291, 53%, 27%)
HSVhsv(291, 69%, 42%)
CMYKcmyk(10.4%, 68.9%, 0%, 58.4%)
CIE-LABlab(25.45, 39.23, -29.72)
CIE-LCHlch(25.45, 49.21, 322.85°)
OKLaboklab(37.42% 0.1035 -0.0829)
OKLCHoklch(37.42% 0.133 321.3)
XYZxyz(7.8644, 4.5616, 14.0991)
Luminance0.0456 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F216A #2C6A21
analogous
#3B216A #5F216A #6A2151
triadic
#5F216A #6A5F21 #216A5F
tetradic
#5F216A #6A3B21 #2C6A21 #21516A
square
#5F216A #6A3B21 #2C6A21 #21516A
split-complementary
#5F216A #516A21 #216A3B
monochromatic
#150717 #35123B #5F216A #893099 #B041C4

Accessibility & contrast

On white

10.98
#5F216A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5F216A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F216A
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F216A#FFFFFF#000000##FFFFFF
##5F216A1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D386C
Deuteranopia (green-blind)
#293F68
Tritanopia (blue-blind)
#602D42
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f216a;
/* rgb */ color: rgb(95, 33, 106);
/* oklch */ color: oklch(37.4% 0.133 321.3);
Tailwind
colors: {
  custom: {
    50: '#8f6295',
    500: '#5f216a',
    950: '#000000',
  },
}
SCSS
$custom: #5f216a;
$custom-light: #8f6295;
$custom-dark: #000000;
JSON
{
  "hex": "#5f216a",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 106
  },
  "hsl": {
    "h": 290.959,
    "s": 52.518,
    "l": 27.255
  },
  "oklch": {
    "l": 0.37423,
    "c": 0.13262,
    "h": 321.3
  },
  "luminance": 0.04561
}

Semantic roles & 50–950 ramp

primary
#5F216A
secondary
#569E49
accent
#DC4C62
background
#F9F6F9
surface
#F1EBF1
border
#CBC6CB
text
#0D050D
muted
#7E7A7E

Preview Lab

Preview with #5F216A

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

Preview Lab → · Contrast checker → · Palette generator →

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