#5E21AA#5E21AA

#5E21AA is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.4% C 0.198 H 297.0°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#5E21AA
RGBrgb(94, 33, 170)
HSLhsl(267, 67%, 40%)
HSVhsv(267, 81%, 67%)
CMYKcmyk(44.7%, 80.6%, 0%, 33.3%)
CIE-LABlab(30.33, 54.00, -61.67)
CIE-LCHlch(30.33, 81.97, 311.21°)
OKLaboklab(42.41% 0.0901 -0.1767)
OKLCHoklch(42.41% 0.198 297)
XYZxyz(12.4137, 6.3694, 38.5978)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E21AA #6DAA21
analogous
#2129AA #5E21AA #A221AA
triadic
#5E21AA #AA5E21 #21AA5E
tetradic
#5E21AA #AA2129 #6DAA21 #21AAA2
square
#5E21AA #AA2129 #6DAA21 #21AAA2
split-complementary
#5E21AA #AAA221 #29AA21
monochromatic
#250D43 #421777 #5E21AA #7B31D7 #9C64E1

Accessibility & contrast

On white

9.23
#5E21AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5E21AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E21AA
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E21AA#FFFFFF#000000##FFFFFF
##5E21AA1.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AE
Deuteranopia (green-blind)
#0046A7
Tritanopia (blue-blind)
#494866
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e21aa;
/* rgb */ color: rgb(94, 33, 170);
/* oklch */ color: oklch(42.4% 0.198 297.0);
Tailwind
colors: {
  custom: {
    50: '#9365c4',
    500: '#5e21aa',
    950: '#000000',
  },
}
SCSS
$custom: #5e21aa;
$custom-light: #9365c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e21aa",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 266.715,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4241,
    "c": 0.19834,
    "h": 297
  },
  "luminance": 0.0637
}

Semantic roles & 50–950 ramp

primary
#5E21AA
secondary
#99C661
accent
#EA3D9D
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5E21AA

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

Preview Lab → · Contrast checker → · Palette generator →

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