#5E20A8#5E20A8

#5E20A8 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.1% C 0.197 H 297.6°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#5E20A8
RGBrgb(94, 32, 168)
HSLhsl(267, 68%, 39%)
HSVhsv(267, 81%, 66%)
CMYKcmyk(44%, 81%, 0%, 34.1%)
CIE-LABlab(30.01, 53.89, -60.99)
CIE-LCHlch(30.01, 81.39, 311.47°)
OKLaboklab(42.14% 0.0915 -0.1747)
OKLCHoklch(42.14% 0.197 297.6)
XYZxyz(12.1986, 6.2396, 37.5999)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E20A8 #6AA820
analogous
#2026A8 #5E20A8 #A220A8
triadic
#5E20A8 #A85E20 #20A85E
tetradic
#5E20A8 #A82026 #6AA820 #20A8A2
square
#5E20A8 #A82026 #6AA820 #20A8A2
split-complementary
#5E20A8 #A8A220 #26A820
monochromatic
#240C41 #411675 #5E20A8 #7B2ED7 #9C61E1

Accessibility & contrast

On white

9.34
#5E20A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5E20A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E20A8
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E20A8#FFFFFF#000000##FFFFFF
##5E20A81.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#4B4765
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e20a8;
/* rgb */ color: rgb(94, 32, 168);
/* oklch */ color: oklch(42.1% 0.197 297.6);
Tailwind
colors: {
  custom: {
    50: '#9364c3',
    500: '#5e20a8',
    950: '#000000',
  },
}
SCSS
$custom: #5e20a8;
$custom-light: #9364c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e20a8",
  "rgb": {
    "r": 94,
    "g": 32,
    "b": 168
  },
  "hsl": {
    "h": 267.353,
    "s": 68,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42135,
    "c": 0.19718,
    "h": 297.6
  },
  "luminance": 0.0624
}

Semantic roles & 50–950 ramp

primary
#5E20A8
secondary
#96C65E
accent
#EB3D9C
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5E20A8

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

Preview Lab → · Contrast checker → · Palette generator →

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