#5A20A7#5A20A7

#5A20A7 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.6% C 0.196 H 295.9°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#5A20A7
RGBrgb(90, 32, 167)
HSLhsl(266, 68%, 39%)
HSVhsv(266, 81%, 65%)
CMYKcmyk(46.1%, 80.8%, 0%, 34.5%)
CIE-LABlab(29.40, 53.06, -61.40)
CIE-LCHlch(29.40, 81.15, 310.83°)
OKLaboklab(41.57% 0.0856 -0.176)
OKLCHoklch(41.57% 0.196 295.9)
XYZxyz(11.7061, 5.9964, 37.0924)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A20A7 #6DA720
analogous
#202AA7 #5A20A7 #9E20A7
triadic
#5A20A7 #A75A20 #20A75A
tetradic
#5A20A7 #A7202A #6DA720 #20A79E
square
#5A20A7 #A7202A #6DA720 #20A79E
split-complementary
#5A20A7 #A79E20 #2AA720
monochromatic
#230C40 #3E1674 #5A20A7 #762DD7 #9861E1

Accessibility & contrast

On white

9.55
#5A20A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5A20A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A20A7
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A20A7#FFFFFF#000000##FFFFFF
##5A20A71.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#0043A5
Tritanopia (blue-blind)
#444764
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a20a7;
/* rgb */ color: rgb(90, 32, 167);
/* oklch */ color: oklch(41.6% 0.196 295.9);
Tailwind
colors: {
  custom: {
    50: '#9163c2',
    500: '#5a20a7',
    950: '#000000',
  },
}
SCSS
$custom: #5a20a7;
$custom-light: #9163c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a20a7",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 167
  },
  "hsl": {
    "h": 265.778,
    "s": 67.839,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41573,
    "c": 0.19575,
    "h": 295.9
  },
  "luminance": 0.05997
}

Semantic roles & 50–950 ramp

primary
#5A20A7
secondary
#99C55D
accent
#EB3DA0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A20A7

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

Preview Lab → · Contrast checker → · Palette generator →

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