#5A208E#5A208E

#5A208E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.169 H 303.2°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#5A208E
RGBrgb(90, 32, 142)
HSLhsl(272, 63%, 34%)
HSVhsv(272, 77%, 56%)
CMYKcmyk(36.6%, 77.5%, 0%, 44.3%)
CIE-LABlab(27.18, 46.83, -49.74)
CIE-LCHlch(27.18, 68.32, 313.27°)
OKLaboklab(39.34% 0.0928 -0.1418)
OKLCHoklch(39.34% 0.169 303.2)
XYZxyz(9.6143, 5.1597, 26.0753)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A208E #548E20
analogous
#23208E #5A208E #8E208B
triadic
#5A208E #8E5A20 #208E5A
tetradic
#5A208E #8E2320 #548E20 #208B8E
square
#5A208E #8E2320 #548E20 #208B8E
split-complementary
#5A208E #8B8E20 #208E23
monochromatic
#1B092A #3A155C #5A208E #7A2BC0 #9851D8

Accessibility & contrast

On white

10.33
#5A208E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5A208E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A208E
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A208E#FFFFFF#000000##FFFFFF
##5A208E1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#4F3C56
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5a208e;
/* rgb */ color: rgb(90, 32, 142);
/* oklch */ color: oklch(39.3% 0.169 303.2);
Tailwind
colors: {
  custom: {
    50: '#8e62b0',
    500: '#5a208e',
    950: '#000000',
  },
}
SCSS
$custom: #5a208e;
$custom-light: #8e62b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a208e",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 142
  },
  "hsl": {
    "h": 271.636,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39342,
    "c": 0.16949,
    "h": 303.2
  },
  "luminance": 0.0516
}

Semantic roles & 50–950 ramp

primary
#5A208E
secondary
#82BB4F
accent
#E6428F
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5A208E

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

Preview Lab → · Contrast checker → · Palette generator →

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