#5E21AF#5E21AF

#5E21AF is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.9% C 0.204 H 295.8°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#5E21AF
RGBrgb(94, 33, 175)
HSLhsl(266, 68%, 41%)
HSVhsv(266, 81%, 69%)
CMYKcmyk(46.3%, 81.1%, 0%, 31.4%)
CIE-LABlab(30.79, 55.25, -63.91)
CIE-LCHlch(30.79, 84.48, 310.84°)
OKLaboklab(42.87% 0.0885 -0.1833)
OKLCHoklch(42.87% 0.204 295.8)
XYZxyz(12.8957, 6.5622, 41.1363)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E21AF #72AF21
analogous
#212BAF #5E21AF #A521AF
triadic
#5E21AF #AF5E21 #21AF5E
tetradic
#5E21AF #AF212B #72AF21 #21AFA5
square
#5E21AF #AF212B #72AF21 #21AFA5
split-complementary
#5E21AF #AFA521 #2BAF21
monochromatic
#270E48 #42177C #5E21AF #7B34D9 #9D68E3

Accessibility & contrast

On white

9.08
#5E21AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5E21AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E21AF
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E21AF#FFFFFF#000000##FFFFFF
##5E21AF1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B3
Deuteranopia (green-blind)
#0046AC
Tritanopia (blue-blind)
#474A69
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5e21af;
/* rgb */ color: rgb(94, 33, 175);
/* oklch */ color: oklch(42.9% 0.204 295.8);
Tailwind
colors: {
  custom: {
    50: '#9465c8',
    500: '#5e21af',
    950: '#000000',
  },
}
SCSS
$custom: #5e21af;
$custom-light: #9465c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e21af",
  "rgb": {
    "r": 94,
    "g": 33,
    "b": 175
  },
  "hsl": {
    "h": 265.775,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42872,
    "c": 0.20351,
    "h": 295.8
  },
  "luminance": 0.06563
}

Semantic roles & 50–950 ramp

primary
#5E21AF
secondary
#9DC864
accent
#EB3DA0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5E21AF

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

Preview Lab → · Contrast checker → · Palette generator →

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