#5A20A5#5A20A5

#5A20A5 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.4% C 0.194 H 296.5°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#5A20A5
RGBrgb(90, 32, 165)
HSLhsl(266, 68%, 39%)
HSVhsv(266, 81%, 65%)
CMYKcmyk(45.5%, 80.6%, 0%, 35.3%)
CIE-LABlab(29.22, 52.56, -60.50)
CIE-LCHlch(29.22, 80.14, 310.98°)
OKLaboklab(41.39% 0.0863 -0.1734)
OKLCHoklch(41.39% 0.194 296.5)
XYZxyz(11.5227, 5.9230, 36.1262)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A20A5 #6BA520
analogous
#2029A5 #5A20A5 #9C20A5
triadic
#5A20A5 #A55A20 #20A55A
tetradic
#5A20A5 #A52029 #6BA520 #20A59C
square
#5A20A5 #A52029 #6BA520 #20A59C
split-complementary
#5A20A5 #A59C20 #29A520
monochromatic
#220C3E #3E1672 #5A20A5 #762CD6 #975FE0

Accessibility & contrast

On white

9.61
#5A20A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5A20A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A20A5
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A20A5#FFFFFF#000000##FFFFFF
##5A20A51.009.612.189.61
#FFFFFF9.611.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#0043A3
Tritanopia (blue-blind)
#454663
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a20a5;
/* rgb */ color: rgb(90, 32, 165);
/* oklch */ color: oklch(41.4% 0.194 296.5);
Tailwind
colors: {
  custom: {
    50: '#9063c1',
    500: '#5a20a5',
    950: '#000000',
  },
}
SCSS
$custom: #5a20a5;
$custom-light: #9063c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a20a5",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 165
  },
  "hsl": {
    "h": 266.165,
    "s": 67.513,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41387,
    "c": 0.19366,
    "h": 296.5
  },
  "luminance": 0.05923
}

Semantic roles & 50–950 ramp

primary
#5A20A5
secondary
#97C55C
accent
#EA3D9F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5A20A5

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

Preview Lab → · Contrast checker → · Palette generator →

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