#5E21BC#5E21BC

#5E21BC is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 44.1% C 0.217 H 292.8°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#5E21BC
RGBrgb(94, 33, 188)
HSLhsl(264, 70%, 43%)
HSVhsv(264, 82%, 74%)
CMYKcmyk(50%, 82.4%, 0%, 26.3%)
CIE-LABlab(32.03, 58.51, -69.61)
CIE-LCHlch(32.03, 90.93, 310.05°)
OKLaboklab(44.1% 0.084 -0.1999)
OKLCHoklch(44.1% 0.217 292.8)
XYZxyz(14.2345, 7.0977, 48.1872)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E21BC #7FBC21
analogous
#2131BC #5E21BC #AB21BC
triadic
#5E21BC #BC5E21 #21BC5E
tetradic
#5E21BC #BC2131 #7FBC21 #21BCAB
square
#5E21BC #BC2131 #7FBC21 #21BCAB
split-complementary
#5E21BC #BCAB21 #31BC21
monochromatic
#2A0F54 #441888 #5E21BC #7C3DDD #9F71E6

Accessibility & contrast

On white

8.68
#5E21BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5E21BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E21BC
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E21BC#FFFFFF#000000##FFFFFF
##5E21BC1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC0
Deuteranopia (green-blind)
#0048B9
Tritanopia (blue-blind)
#3F5071
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5e21bc;
/* rgb */ color: rgb(94, 33, 188);
/* oklch */ color: oklch(44.1% 0.217 292.8);
Tailwind
colors: {
  custom: {
    50: '#9666d1',
    500: '#5e21bc',
    950: '#000000',
  },
}
SCSS
$custom: #5e21bc;
$custom-light: #9666d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e21bc",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 188
  },
  "hsl": {
    "h": 263.613,
    "s": 70.136,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44103,
    "c": 0.21687,
    "h": 292.8
  },
  "luminance": 0.07098
}

Semantic roles & 50–950 ramp

primary
#5E21BC
secondary
#A7CD6C
accent
#ED3BA7
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0F0614
muted
#7E7A83

Preview Lab

Preview with #5E21BC

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

Preview Lab → · Contrast checker → · Palette generator →

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