#5E216C#5E216C

#5E216C is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.4% C 0.134 H 319.6°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#5E216C
RGBrgb(94, 33, 108)
HSLhsl(289, 53%, 28%)
HSVhsv(289, 69%, 42%)
CMYKcmyk(13%, 69.4%, 0%, 57.6%)
CIE-LABlab(25.41, 39.39, -31.08)
CIE-LCHlch(25.41, 50.17, 321.73°)
OKLaboklab(37.41% 0.1022 -0.0869)
OKLCHoklch(37.41% 0.134 319.6)
XYZxyz(7.8664, 4.5505, 14.6484)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E216C #2F6C21
analogous
#39216C #5E216C #6C2154
triadic
#5E216C #6C5E21 #216C5E
tetradic
#5E216C #6C3921 #2F6C21 #21546C
square
#5E216C #6C3921 #2F6C21 #21546C
split-complementary
#5E216C #546C21 #216C39
monochromatic
#140717 #35133D #5E216C #872F9B #AD42C5

Accessibility & contrast

On white

10.99
#5E216C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E216C
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E216C#FFFFFF#000000##FFFFFF
##5E216C1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08386E
Deuteranopia (green-blind)
#273E6A
Tritanopia (blue-blind)
#5E2E43
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5e216c;
/* rgb */ color: rgb(94, 33, 108);
/* oklch */ color: oklch(37.4% 0.134 319.6);
Tailwind
colors: {
  custom: {
    50: '#8e6296',
    500: '#5e216c',
    950: '#000000',
  },
}
SCSS
$custom: #5e216c;
$custom-light: #8e6296;
$custom-dark: #000000;
JSON
{
  "hex": "#5e216c",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 108
  },
  "hsl": {
    "h": 288.8,
    "s": 53.191,
    "l": 27.647
  },
  "oklch": {
    "l": 0.37407,
    "c": 0.13414,
    "h": 319.6
  },
  "luminance": 0.0455
}

Semantic roles & 50–950 ramp

primary
#5E216C
secondary
#59A049
accent
#DD4B66
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0D050D
muted
#7D797E

Preview Lab

Preview with #5E216C

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

Preview Lab → · Contrast checker → · Palette generator →

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