#5E217B#5E217B

#5E217B is a dark, vivid purple. Relative luminance 0.049; OKLCH L 38.5% C 0.150 H 312.5°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#5E217B
RGBrgb(94, 33, 123)
HSLhsl(281, 58%, 31%)
HSVhsv(281, 73%, 48%)
CMYKcmyk(23.6%, 73.2%, 0%, 51.8%)
CIE-LABlab(26.44, 42.70, -39.02)
CIE-LCHlch(26.44, 57.84, 317.58°)
OKLaboklab(38.47% 0.1011 -0.1102)
OKLCHoklch(38.47% 0.15 312.5)
XYZxyz(8.7345, 4.8977, 19.2203)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E217B #3E7B21
analogous
#31217B #5E217B #7B216B
triadic
#5E217B #7B5E21 #217B5E
tetradic
#5E217B #7B3121 #3E7B21 #216B7B
square
#5E217B #7B3121 #3E7B21 #216B7B
split-complementary
#5E217B #6B7B21 #217B31
monochromatic
#14071A #39144B #5E217B #832EAB #A348CE

Accessibility & contrast

On white

10.61
#5E217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5E217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E217B
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E217B#FFFFFF#000000##FFFFFF
##5E217B1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#184079
Tritanopia (blue-blind)
#5B344B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e217b;
/* rgb */ color: rgb(94, 33, 123);
/* oklch */ color: oklch(38.5% 0.150 312.5);
Tailwind
colors: {
  custom: {
    50: '#8f62a2',
    500: '#5e217b',
    950: '#000000',
  },
}
SCSS
$custom: #5e217b;
$custom-light: #8f62a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e217b",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 280.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38472,
    "c": 0.14951,
    "h": 312.5
  },
  "luminance": 0.04897
}

Semantic roles & 50–950 ramp

primary
#5E217B
secondary
#6AAE4A
accent
#E14779
background
#F9F6FA
surface
#F1EBF3
border
#CBC6CD
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5E217B

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

Preview Lab → · Contrast checker → · Palette generator →

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