#5B216A#5B216A

#5B216A is a dark, vivid purple. Relative luminance 0.044; OKLCH L 36.8% C 0.131 H 318.7°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#5B216A
RGBrgb(91, 33, 106)
HSLhsl(288, 53%, 27%)
HSVhsv(288, 69%, 42%)
CMYKcmyk(14.2%, 68.9%, 0%, 58.4%)
CIE-LABlab(24.81, 38.19, -30.78)
CIE-LCHlch(24.81, 49.05, 321.13°)
OKLaboklab(36.83% 0.0982 -0.0861)
OKLCHoklch(36.83% 0.131 318.7)
XYZxyz(7.4594, 4.3528, 14.0801)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B216A #306A21
analogous
#36216A #5B216A #6A2155
triadic
#5B216A #6A5B21 #216A5B
tetradic
#5B216A #6A3621 #306A21 #21556A
square
#5B216A #6A3621 #306A21 #21556A
split-complementary
#5B216A #556A21 #216A36
monochromatic
#140717 #33123B #5B216A #833099 #A941C4

Accessibility & contrast

On white

11.23
#5B216A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5B216A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B216A
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B216A#FFFFFF#000000##FFFFFF
##5B216A1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08376C
Deuteranopia (green-blind)
#253D68
Tritanopia (blue-blind)
#5B2E42
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b216a;
/* rgb */ color: rgb(91, 33, 106);
/* oklch */ color: oklch(36.8% 0.131 318.7);
Tailwind
colors: {
  custom: {
    50: '#8c6195',
    500: '#5b216a',
    950: '#000000',
  },
}
SCSS
$custom: #5b216a;
$custom-light: #8c6195;
$custom-dark: #000000;
JSON
{
  "hex": "#5b216a",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 106
  },
  "hsl": {
    "h": 287.671,
    "s": 52.518,
    "l": 27.255
  },
  "oklch": {
    "l": 0.36829,
    "c": 0.13064,
    "h": 318.7
  },
  "luminance": 0.04352
}

Semantic roles & 50–950 ramp

primary
#5B216A
secondary
#5A9E49
accent
#DC4C69
background
#F8F5F9
surface
#F0EAF1
border
#CBC6CB
text
#0C050D
muted
#7D797E

Preview Lab

Preview with #5B216A

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

Preview Lab → · Contrast checker → · Palette generator →

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