#5A208D#5A208D

#5A208D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.168 H 303.5°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#5A208D
RGBrgb(90, 32, 141)
HSLhsl(272, 63%, 34%)
HSVhsv(272, 77%, 55%)
CMYKcmyk(36.2%, 77.3%, 0%, 44.7%)
CIE-LABlab(27.10, 46.58, -49.26)
CIE-LCHlch(27.10, 67.80, 313.40°)
OKLaboklab(39.26% 0.0931 -0.1404)
OKLCHoklch(39.26% 0.168 303.5)
XYZxyz(9.5396, 5.1298, 25.6817)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A208D #538D20
analogous
#24208D #5A208D #8D208A
triadic
#5A208D #8D5A20 #208D5A
tetradic
#5A208D #8D2420 #538D20 #208A8D
square
#5A208D #8D2420 #538D20 #208A8D
split-complementary
#5A208D #8A8D20 #208D24
monochromatic
#1A0929 #3A155B #5A208D #7A2BBF #9850D7

Accessibility & contrast

On white

10.37
#5A208D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A208D
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A208D#FFFFFF#000000##FFFFFF
##5A208D1.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#503C55
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5a208d;
/* rgb */ color: rgb(90, 32, 141);
/* oklch */ color: oklch(39.3% 0.168 303.5);
Tailwind
colors: {
  custom: {
    50: '#8e62af',
    500: '#5a208d',
    950: '#000000',
  },
}
SCSS
$custom: #5a208d;
$custom-light: #8e62af;
$custom-dark: #000000;
JSON
{
  "hex": "#5a208d",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 141
  },
  "hsl": {
    "h": 271.927,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39257,
    "c": 0.16843,
    "h": 303.5
  },
  "luminance": 0.0513
}

Semantic roles & 50–950 ramp

primary
#5A208D
secondary
#81BA4E
accent
#E6428F
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5A208D

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

Preview Lab → · Contrast checker → · Palette generator →

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