#5E21BD#5E21BD

#5E21BD is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 44.2% C 0.218 H 292.6°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#5E21BD
RGBrgb(94, 33, 189)
HSLhsl(263, 70%, 44%)
HSVhsv(263, 83%, 74%)
CMYKcmyk(50.3%, 82.5%, 0%, 25.9%)
CIE-LABlab(32.13, 58.76, -70.04)
CIE-LCHlch(32.13, 91.42, 310.00°)
OKLaboklab(44.2% 0.0837 -0.2012)
OKLCHoklch(44.2% 0.218 292.6)
XYZxyz(14.3427, 7.1410, 48.7569)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E21BD #80BD21
analogous
#2132BD #5E21BD #AC21BD
triadic
#5E21BD #BD5E21 #21BD5E
tetradic
#5E21BD #BD2132 #80BD21 #21BDAC
square
#5E21BD #BD2132 #80BD21 #21BDAC
split-complementary
#5E21BD #BDAC21 #32BD21
monochromatic
#2A0F55 #441889 #5E21BD #7C3EDD #A072E6

Accessibility & contrast

On white

8.65
#5E21BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5E21BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E21BD
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E21BD#FFFFFF#000000##FFFFFF
##5E21BD1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC1
Deuteranopia (green-blind)
#0048BA
Tritanopia (blue-blind)
#3E5071
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5e21bd;
/* rgb */ color: rgb(94, 33, 189);
/* oklch */ color: oklch(44.2% 0.218 292.6);
Tailwind
colors: {
  custom: {
    50: '#9666d2',
    500: '#5e21bd',
    950: '#000000',
  },
}
SCSS
$custom: #5e21bd;
$custom-light: #9666d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e21bd",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 263.462,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.442,
    "c": 0.21789,
    "h": 292.6
  },
  "luminance": 0.07142
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5E21BD

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

Preview Lab → · Contrast checker → · Palette generator →

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