#5E21A4#5E21A4

#5E21A4 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.9% C 0.192 H 298.6°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#5E21A4
RGBrgb(94, 33, 164)
HSLhsl(268, 66%, 39%)
HSVhsv(268, 80%, 64%)
CMYKcmyk(42.7%, 79.9%, 0%, 35.7%)
CIE-LABlab(29.78, 52.51, -58.95)
CIE-LCHlch(29.78, 78.95, 311.70°)
OKLaboklab(41.87% 0.0919 -0.1687)
OKLCHoklch(41.87% 0.192 298.6)
XYZxyz(11.8591, 6.1475, 35.6766)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E21A4 #67A421
analogous
#2125A4 #5E21A4 #9F21A4
triadic
#5E21A4 #A45E21 #21A45E
tetradic
#5E21A4 #A42125 #67A421 #21A49F
square
#5E21A4 #A42125 #67A421 #21A49F
split-complementary
#5E21A4 #A49F21 #25A421
monochromatic
#240C3E #411771 #5E21A4 #7B2DD5 #9B60DF

Accessibility & contrast

On white

9.42
#5E21A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5E21A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E21A4
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E21A4#FFFFFF#000000##FFFFFF
##5E21A41.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A8
Deuteranopia (green-blind)
#0045A2
Tritanopia (blue-blind)
#4C4563
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5e21a4;
/* rgb */ color: rgb(94, 33, 164);
/* oklch */ color: oklch(41.9% 0.192 298.6);
Tailwind
colors: {
  custom: {
    50: '#9364c0',
    500: '#5e21a4',
    950: '#000000',
  },
}
SCSS
$custom: #5e21a4;
$custom-light: #9364c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e21a4",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 164
  },
  "hsl": {
    "h": 267.939,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41866,
    "c": 0.19214,
    "h": 298.6
  },
  "luminance": 0.06148
}

Semantic roles & 50–950 ramp

primary
#5E21A4
secondary
#94C45D
accent
#E93E9A
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E21A4

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

Preview Lab → · Contrast checker → · Palette generator →

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