#5A20A0#5A20A0

#5A20A0 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.9% C 0.188 H 297.8°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#5A20A0
RGBrgb(90, 32, 160)
HSLhsl(267, 67%, 38%)
HSVhsv(267, 80%, 63%)
CMYKcmyk(43.7%, 80%, 0%, 37.3%)
CIE-LABlab(28.76, 51.30, -58.22)
CIE-LCHlch(28.76, 77.60, 311.39°)
OKLaboklab(40.93% 0.0878 -0.1667)
OKLCHoklch(40.93% 0.188 297.8)
XYZxyz(11.0765, 5.7445, 33.7761)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A20A0 #66A020
analogous
#2026A0 #5A20A0 #9A20A0
triadic
#5A20A0 #A05A20 #20A05A
tetradic
#5A20A0 #A02026 #66A020 #20A09A
square
#5A20A0 #A02026 #66A020 #20A09A
split-complementary
#5A20A0 #A09A20 #26A020
monochromatic
#210C3A #3D166D #5A20A0 #772AD3 #975CDE

Accessibility & contrast

On white

9.77
#5A20A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5A20A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A20A0
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A20A0#FFFFFF#000000##FFFFFF
##5A20A01.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A3
Deuteranopia (green-blind)
#00429E
Tritanopia (blue-blind)
#484460
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5a20a0;
/* rgb */ color: rgb(90, 32, 160);
/* oklch */ color: oklch(40.9% 0.188 297.8);
Tailwind
colors: {
  custom: {
    50: '#9063bd',
    500: '#5a20a0',
    950: '#000000',
  },
}
SCSS
$custom: #5a20a0;
$custom-light: #9063bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a20a0",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 160
  },
  "hsl": {
    "h": 267.188,
    "s": 66.667,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40928,
    "c": 0.18843,
    "h": 297.8
  },
  "luminance": 0.05745
}

Semantic roles & 50–950 ramp

primary
#5A20A0
secondary
#93C359
accent
#EA3E9C
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A20A0

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

Preview Lab → · Contrast checker → · Palette generator →

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