#5A209E#5A209E

#5A209E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.186 H 298.3°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#5A209E
RGBrgb(90, 32, 158)
HSLhsl(268, 66%, 37%)
HSVhsv(268, 80%, 62%)
CMYKcmyk(43%, 79.7%, 0%, 38%)
CIE-LABlab(28.58, 50.80, -57.30)
CIE-LCHlch(28.58, 76.57, 311.56°)
OKLaboklab(40.75% 0.0885 -0.164)
OKLCHoklch(40.75% 0.186 298.3)
XYZxyz(10.9029, 5.6751, 32.8621)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A209E #649E20
analogous
#20259E #5A209E #99209E
triadic
#5A209E #9E5A20 #209E5A
tetradic
#5A209E #9E2025 #649E20 #209E99
square
#5A209E #9E2025 #649E20 #209E99
split-complementary
#5A209E #9E9920 #259E20
monochromatic
#200B38 #3D166B #5A209E #772AD1 #975BDE

Accessibility & contrast

On white

9.84
#5A209E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5A209E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A209E
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A209E#FFFFFF#000000##FFFFFF
##5A209E1.009.842.149.84
#FFFFFF9.841.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#49435F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a209e;
/* rgb */ color: rgb(90, 32, 158);
/* oklch */ color: oklch(40.7% 0.186 298.3);
Tailwind
colors: {
  custom: {
    50: '#9063bc',
    500: '#5a209e',
    950: '#000000',
  },
}
SCSS
$custom: #5a209e;
$custom-light: #9063bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a209e",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 158
  },
  "hsl": {
    "h": 267.619,
    "s": 66.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40747,
    "c": 0.18633,
    "h": 298.3
  },
  "luminance": 0.05675
}

Semantic roles & 50–950 ramp

primary
#5A209E
secondary
#91C258
accent
#E93F9B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A209E

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

Preview Lab → · Contrast checker → · Palette generator →

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