#5E20A7#5E20A7

#5E20A7 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.0% C 0.196 H 297.9°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#5E20A7
RGBrgb(94, 32, 167)
HSLhsl(268, 68%, 39%)
HSVhsv(268, 81%, 65%)
CMYKcmyk(43.7%, 80.8%, 0%, 34.5%)
CIE-LABlab(29.92, 53.65, -60.54)
CIE-LCHlch(29.92, 80.89, 311.55°)
OKLaboklab(42.04% 0.0918 -0.1734)
OKLCHoklch(42.04% 0.196 297.9)
XYZxyz(12.1058, 6.2025, 37.1111)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E20A7 #69A720
analogous
#2025A7 #5E20A7 #A220A7
triadic
#5E20A7 #A75E20 #20A75E
tetradic
#5E20A7 #A72025 #69A720 #20A7A2
square
#5E20A7 #A72025 #69A720 #20A7A2
split-complementary
#5E20A7 #A7A220 #25A720
monochromatic
#240C40 #411674 #5E20A7 #7B2DD7 #9B61E1

Accessibility & contrast

On white

9.37
#5E20A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5E20A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E20A7
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E20A7#FFFFFF#000000##FFFFFF
##5E20A71.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#4B4664
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5e20a7;
/* rgb */ color: rgb(94, 32, 167);
/* oklch */ color: oklch(42.0% 0.196 297.9);
Tailwind
colors: {
  custom: {
    50: '#9364c2',
    500: '#5e20a7',
    950: '#000000',
  },
}
SCSS
$custom: #5e20a7;
$custom-light: #9364c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e20a7",
  "rgb": {
    "r": 94,
    "g": 32,
    "b": 167
  },
  "hsl": {
    "h": 267.556,
    "s": 67.839,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42043,
    "c": 0.19615,
    "h": 297.9
  },
  "luminance": 0.06203
}

Semantic roles & 50–950 ramp

primary
#5E20A7
secondary
#96C55D
accent
#EB3D9B
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5E20A7

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

Preview Lab → · Contrast checker → · Palette generator →

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