#5A20A6#5A20A6

#5A20A6 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.5% C 0.195 H 296.2°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#5A20A6
RGBrgb(90, 32, 166)
HSLhsl(266, 68%, 39%)
HSVhsv(266, 81%, 65%)
CMYKcmyk(45.8%, 80.7%, 0%, 34.9%)
CIE-LABlab(29.31, 52.81, -60.95)
CIE-LCHlch(29.31, 80.65, 310.91°)
OKLaboklab(41.48% 0.086 -0.1747)
OKLCHoklch(41.48% 0.195 296.2)
XYZxyz(11.6141, 5.9596, 36.6074)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A20A6 #6CA620
analogous
#2029A6 #5A20A6 #9D20A6
triadic
#5A20A6 #A65A20 #20A65A
tetradic
#5A20A6 #A62029 #6CA620 #20A69D
square
#5A20A6 #A62029 #6CA620 #20A69D
split-complementary
#5A20A6 #A69D20 #29A620
monochromatic
#220C3F #3E1673 #5A20A6 #762DD6 #9860E0

Accessibility & contrast

On white

9.58
#5A20A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5A20A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A20A6
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A20A6#FFFFFF#000000##FFFFFF
##5A20A61.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#0043A4
Tritanopia (blue-blind)
#454664
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a20a6;
/* rgb */ color: rgb(90, 32, 166);
/* oklch */ color: oklch(41.5% 0.195 296.2);
Tailwind
colors: {
  custom: {
    50: '#9163c2',
    500: '#5a20a6',
    950: '#000000',
  },
}
SCSS
$custom: #5a20a6;
$custom-light: #9163c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a20a6",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 166
  },
  "hsl": {
    "h": 265.97,
    "s": 67.677,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4148,
    "c": 0.19471,
    "h": 296.2
  },
  "luminance": 0.0596
}

Semantic roles & 50–950 ramp

primary
#5A20A6
secondary
#98C55D
accent
#EB3DA0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5A20A6

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

Preview Lab → · Contrast checker → · Palette generator →

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