#5A208C#5A208C

#5A208C is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.167 H 303.9°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#5A208C
RGBrgb(90, 32, 140)
HSLhsl(272, 63%, 34%)
HSVhsv(272, 77%, 55%)
CMYKcmyk(35.7%, 77.1%, 0%, 45.1%)
CIE-LABlab(27.02, 46.34, -48.77)
CIE-LCHlch(27.02, 67.27, 313.53°)
OKLaboklab(39.17% 0.0933 -0.139)
OKLCHoklch(39.17% 0.167 303.9)
XYZxyz(9.4655, 5.1002, 25.2916)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A208C #528C20
analogous
#24208C #5A208C #8C2088
triadic
#5A208C #8C5A20 #208C5A
tetradic
#5A208C #8C2420 #528C20 #20888C
square
#5A208C #8C2420 #528C20 #20888C
split-complementary
#5A208C #888C20 #208C24
monochromatic
#1A0928 #3A155A #5A208C #7A2BBE #9850D7

Accessibility & contrast

On white

10.40
#5A208C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5A208C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A208C
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A208C#FFFFFF#000000##FFFFFF
##5A208C1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#00408A
Tritanopia (blue-blind)
#503B55
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5a208c;
/* rgb */ color: rgb(90, 32, 140);
/* oklch */ color: oklch(39.2% 0.167 303.9);
Tailwind
colors: {
  custom: {
    50: '#8e62ae',
    500: '#5a208c',
    950: '#000000',
  },
}
SCSS
$custom: #5a208c;
$custom-light: #8e62ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5a208c",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 140
  },
  "hsl": {
    "h": 272.222,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39173,
    "c": 0.16738,
    "h": 303.9
  },
  "luminance": 0.051
}

Semantic roles & 50–950 ramp

primary
#5A208C
secondary
#80BA4E
accent
#E6428E
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5A208C

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

Preview Lab → · Contrast checker → · Palette generator →

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