#5D20A6#5D20A6

#5D20A6 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.8% C 0.195 H 297.7°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#5D20A6
RGBrgb(93, 32, 166)
HSLhsl(267, 68%, 39%)
HSVhsv(267, 81%, 65%)
CMYKcmyk(44%, 80.7%, 0%, 34.9%)
CIE-LABlab(29.70, 53.25, -60.30)
CIE-LCHlch(29.70, 80.45, 311.45°)
OKLaboklab(41.83% 0.0906 -0.1727)
OKLCHoklch(41.83% 0.195 297.7)
XYZxyz(11.9118, 6.1131, 36.6214)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D20A6 #69A620
analogous
#2026A6 #5D20A6 #A020A6
triadic
#5D20A6 #A65D20 #20A65D
tetradic
#5D20A6 #A62026 #69A620 #20A6A0
square
#5D20A6 #A62026 #69A620 #20A6A0
split-complementary
#5D20A6 #A6A020 #26A620
monochromatic
#240C3F #401673 #5D20A6 #7A2DD6 #9A60E0

Accessibility & contrast

On white

9.45
#5D20A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5D20A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D20A6
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D20A6#FFFFFF#000000##FFFFFF
##5D20A61.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#4A4664
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5d20a6;
/* rgb */ color: rgb(93, 32, 166);
/* oklch */ color: oklch(41.8% 0.195 297.7);
Tailwind
colors: {
  custom: {
    50: '#9264c1',
    500: '#5d20a6',
    950: '#000000',
  },
}
SCSS
$custom: #5d20a6;
$custom-light: #9264c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d20a6",
  "rgb": {
    "r": 93,
    "g": 32,
    "b": 166
  },
  "hsl": {
    "h": 267.313,
    "s": 67.677,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41833,
    "c": 0.19501,
    "h": 297.7
  },
  "luminance": 0.06113
}

Semantic roles & 50–950 ramp

primary
#5D20A6
secondary
#96C55D
accent
#EB3D9C
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D20A6

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

Preview Lab → · Contrast checker → · Palette generator →

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