#5A208B#5A208B

#5A208B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.166 H 304.2°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#5A208B
RGBrgb(90, 32, 139)
HSLhsl(273, 63%, 34%)
HSVhsv(273, 77%, 55%)
CMYKcmyk(35.3%, 77%, 0%, 45.5%)
CIE-LABlab(26.94, 46.09, -48.29)
CIE-LCHlch(26.94, 66.75, 313.67°)
OKLaboklab(39.09% 0.0935 -0.1375)
OKLCHoklch(39.09% 0.166 304.2)
XYZxyz(9.3921, 5.0708, 24.9051)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A208B #518B20
analogous
#24208B #5A208B #8B2086
triadic
#5A208B #8B5A20 #208B5A
tetradic
#5A208B #8B2420 #518B20 #20868B
square
#5A208B #8B2420 #518B20 #20868B
split-complementary
#5A208B #868B20 #208B24
monochromatic
#1A0928 #3A1559 #5A208B #7A2BBD #984FD6

Accessibility & contrast

On white

10.43
#5A208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A208B
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A208B#FFFFFF#000000##FFFFFF
##5A208B1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#503B54
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5a208b;
/* rgb */ color: rgb(90, 32, 139);
/* oklch */ color: oklch(39.1% 0.166 304.2);
Tailwind
colors: {
  custom: {
    50: '#8e62ae',
    500: '#5a208b',
    950: '#000000',
  },
}
SCSS
$custom: #5a208b;
$custom-light: #8e62ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5a208b",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 272.523,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39089,
    "c": 0.16632,
    "h": 304.2
  },
  "luminance": 0.05071
}

Semantic roles & 50–950 ramp

primary
#5A208B
secondary
#7FBA4D
accent
#E6428D
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5A208B

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

Preview Lab → · Contrast checker → · Palette generator →

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