#5E20A9#5E20A9

#5E20A9 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.2% C 0.198 H 297.4°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#5E20A9
RGBrgb(94, 32, 169)
HSLhsl(267, 68%, 39%)
HSVhsv(267, 81%, 66%)
CMYKcmyk(44.4%, 81.1%, 0%, 33.7%)
CIE-LABlab(30.10, 54.14, -61.44)
CIE-LCHlch(30.10, 81.89, 311.39°)
OKLaboklab(42.23% 0.0911 -0.176)
OKLCHoklch(42.23% 0.198 297.4)
XYZxyz(12.2922, 6.2770, 38.0924)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E20A9 #6BA920
analogous
#2027A9 #5E20A9 #A320A9
triadic
#5E20A9 #A95E20 #20A95E
tetradic
#5E20A9 #A92027 #6BA920 #20A9A3
square
#5E20A9 #A92027 #6BA920 #20A9A3
split-complementary
#5E20A9 #A9A320 #27A920
monochromatic
#250D42 #411676 #5E20A9 #7B2FD8 #9C62E1

Accessibility & contrast

On white

9.31
#5E20A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5E20A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E20A9
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E20A9#FFFFFF#000000##FFFFFF
##5E20A91.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AD
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#4A4765
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e20a9;
/* rgb */ color: rgb(94, 32, 169);
/* oklch */ color: oklch(42.2% 0.198 297.4);
Tailwind
colors: {
  custom: {
    50: '#9364c4',
    500: '#5e20a9',
    950: '#000000',
  },
}
SCSS
$custom: #5e20a9;
$custom-light: #9364c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e20a9",
  "rgb": {
    "r": 94,
    "g": 32,
    "b": 169
  },
  "hsl": {
    "h": 267.153,
    "s": 68.159,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42226,
    "c": 0.19821,
    "h": 297.4
  },
  "luminance": 0.06277
}

Semantic roles & 50–950 ramp

primary
#5E20A9
secondary
#97C65F
accent
#EB3D9C
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5E20A9

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

Preview Lab → · Contrast checker → · Palette generator →

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