#5A208F#5A208F

#5A208F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.171 H 302.9°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#5A208F
RGBrgb(90, 32, 143)
HSLhsl(271, 63%, 34%)
HSVhsv(271, 78%, 56%)
CMYKcmyk(37.1%, 77.6%, 0%, 43.9%)
CIE-LABlab(27.27, 47.07, -50.23)
CIE-LCHlch(27.27, 68.84, 313.14°)
OKLaboklab(39.43% 0.0926 -0.1432)
OKLCHoklch(39.43% 0.171 302.9)
XYZxyz(9.6897, 5.1898, 26.4725)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A208F #558F20
analogous
#22208F #5A208F #8F208D
triadic
#5A208F #8F5A20 #208F5A
tetradic
#5A208F #8F2220 #558F20 #208D8F
square
#5A208F #8F2220 #558F20 #208D8F
split-complementary
#5A208F #8D8F20 #208F22
monochromatic
#1B0A2B #3B155D #5A208F #792BC1 #9851D8

Accessibility & contrast

On white

10.30
#5A208F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5A208F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A208F
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A208F#FFFFFF#000000##FFFFFF
##5A208F1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#4F3D56
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5a208f;
/* rgb */ color: rgb(90, 32, 143);
/* oklch */ color: oklch(39.4% 0.171 302.9);
Tailwind
colors: {
  custom: {
    50: '#8e62b1',
    500: '#5a208f',
    950: '#000000',
  },
}
SCSS
$custom: #5a208f;
$custom-light: #8e62b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a208f",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 143
  },
  "hsl": {
    "h": 271.351,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39427,
    "c": 0.17054,
    "h": 302.9
  },
  "luminance": 0.0519
}

Semantic roles & 50–950 ramp

primary
#5A208F
secondary
#83BB4F
accent
#E64190
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5A208F

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

Preview Lab → · Contrast checker → · Palette generator →

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