#5A20A8#5A20A8

#5A20A8 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.7% C 0.197 H 295.7°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#5A20A8
RGBrgb(90, 32, 168)
HSLhsl(266, 68%, 39%)
HSVhsv(266, 81%, 66%)
CMYKcmyk(46.4%, 81%, 0%, 34.1%)
CIE-LABlab(29.50, 53.32, -61.85)
CIE-LCHlch(29.50, 81.66, 310.76°)
OKLaboklab(41.67% 0.0853 -0.1773)
OKLCHoklch(41.67% 0.197 295.7)
XYZxyz(11.7989, 6.0335, 37.5811)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A20A8 #6EA820
analogous
#202AA8 #5A20A8 #9E20A8
triadic
#5A20A8 #A85A20 #20A85A
tetradic
#5A20A8 #A8202A #6EA820 #20A89E
square
#5A20A8 #A8202A #6EA820 #20A89E
split-complementary
#5A20A8 #A89E20 #2AA820
monochromatic
#230C41 #3E1675 #5A20A8 #762ED7 #9861E1

Accessibility & contrast

On white

9.52
#5A20A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5A20A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A20A8
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A20A8#FFFFFF#000000##FFFFFF
##5A20A81.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#0043A6
Tritanopia (blue-blind)
#444765
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a20a8;
/* rgb */ color: rgb(90, 32, 168);
/* oklch */ color: oklch(41.7% 0.197 295.7);
Tailwind
colors: {
  custom: {
    50: '#9164c3',
    500: '#5a20a8',
    950: '#000000',
  },
}
SCSS
$custom: #5a20a8;
$custom-light: #9164c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a20a8",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 168
  },
  "hsl": {
    "h": 265.588,
    "s": 68,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41666,
    "c": 0.1968,
    "h": 295.7
  },
  "luminance": 0.06034
}

Semantic roles & 50–950 ramp

primary
#5A20A8
secondary
#9AC65E
accent
#EB3DA1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A20A8

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

Preview Lab → · Contrast checker → · Palette generator →

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