#5E209B#5E209B

#5E209B is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.184 H 301.3°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#5E209B
RGBrgb(94, 32, 155)
HSLhsl(270, 66%, 37%)
HSVhsv(270, 79%, 61%)
CMYKcmyk(39.4%, 79.4%, 0%, 39.2%)
CIE-LABlab(28.85, 50.70, -55.00)
CIE-LCHlch(28.85, 74.81, 312.67°)
OKLaboklab(40.97% 0.0954 -0.1571)
OKLCHoklch(40.97% 0.184 301.3)
XYZxyz(11.0475, 5.7792, 31.5375)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E209B #5D9B20
analogous
#21209B #5E209B #9B209B
triadic
#5E209B #9B5E20 #209B5E
tetradic
#5E209B #9B2120 #5D9B20 #209B9B
square
#5E209B #9B2120 #5D9B20 #209B9B
split-complementary
#5E209B #9B9B20 #209B21
monochromatic
#200B36 #3F1668 #5E209B #7D2ACE #9B59DD

Accessibility & contrast

On white

9.74
#5E209B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5E209B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E209B
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E209B#FFFFFF#000000##FFFFFF
##5E209B1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#50415D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e209b;
/* rgb */ color: rgb(94, 32, 155);
/* oklch */ color: oklch(41.0% 0.184 301.3);
Tailwind
colors: {
  custom: {
    50: '#9263b9',
    500: '#5e209b',
    950: '#000000',
  },
}
SCSS
$custom: #5e209b;
$custom-light: #9263b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e209b",
  "rgb": {
    "r": 94,
    "g": 32,
    "b": 155
  },
  "hsl": {
    "h": 270.244,
    "s": 65.775,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4097,
    "c": 0.1838,
    "h": 301.3
  },
  "luminance": 0.05779
}

Semantic roles & 50–950 ramp

primary
#5E209B
secondary
#8BC156
accent
#E93F93
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E209B

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

Preview Lab → · Contrast checker → · Palette generator →

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