#5A208A#5A208A

#5A208A is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.165 H 304.6°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#5A208A
RGBrgb(90, 32, 138)
HSLhsl(273, 62%, 33%)
HSVhsv(273, 77%, 54%)
CMYKcmyk(34.8%, 76.8%, 0%, 45.9%)
CIE-LABlab(26.85, 45.85, -47.80)
CIE-LCHlch(26.85, 66.23, 313.81°)
OKLaboklab(39.01% 0.0938 -0.1361)
OKLCHoklch(39.01% 0.165 304.6)
XYZxyz(9.3194, 5.0417, 24.5220)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A208A #508A20
analogous
#25208A #5A208A #8A2085
triadic
#5A208A #8A5A20 #208A5A
tetradic
#5A208A #8A2520 #508A20 #20858A
square
#5A208A #8A2520 #508A20 #20858A
split-complementary
#5A208A #858A20 #208A25
monochromatic
#190927 #3A1458 #5A208A #7A2CBC #994ED6

Accessibility & contrast

On white

10.46
#5A208A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5A208A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A208A
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A208A#FFFFFF#000000##FFFFFF
##5A208A1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#513A54
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5a208a;
/* rgb */ color: rgb(90, 32, 138);
/* oklch */ color: oklch(39.0% 0.165 304.6);
Tailwind
colors: {
  custom: {
    50: '#8e62ad',
    500: '#5a208a',
    950: '#000000',
  },
}
SCSS
$custom: #5a208a;
$custom-light: #8e62ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5a208a",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 138
  },
  "hsl": {
    "h": 272.83,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39005,
    "c": 0.16527,
    "h": 304.6
  },
  "luminance": 0.05042
}

Semantic roles & 50–950 ramp

primary
#5A208A
secondary
#7EB94D
accent
#E5428C
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5A208A

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

Preview Lab → · Contrast checker → · Palette generator →

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