#5A209D#5A209D

#5A209D is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.7% C 0.185 H 298.6°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#5A209D
RGBrgb(90, 32, 157)
HSLhsl(268, 66%, 37%)
HSVhsv(268, 80%, 62%)
CMYKcmyk(42.7%, 79.6%, 0%, 38.4%)
CIE-LABlab(28.49, 50.55, -56.84)
CIE-LCHlch(28.49, 76.06, 311.65°)
OKLaboklab(40.66% 0.0888 -0.1626)
OKLCHoklch(40.66% 0.185 298.6)
XYZxyz(10.8172, 5.6408, 32.4106)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A209D #639D20
analogous
#20249D #5A209D #99209D
triadic
#5A209D #9D5A20 #209D5A
tetradic
#5A209D #9D2024 #639D20 #209D99
square
#5A209D #9D2024 #639D20 #209D99
split-complementary
#5A209D #9D9920 #249D20
monochromatic
#200B37 #3D166A #5A209D #772AD0 #975ADD

Accessibility & contrast

On white

9.87
#5A209D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5A209D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A209D
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A209D#FFFFFF#000000##FFFFFF
##5A209D1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#00429B
Tritanopia (blue-blind)
#49425E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a209d;
/* rgb */ color: rgb(90, 32, 157);
/* oklch */ color: oklch(40.7% 0.185 298.6);
Tailwind
colors: {
  custom: {
    50: '#9063bb',
    500: '#5a209d',
    950: '#000000',
  },
}
SCSS
$custom: #5a209d;
$custom-light: #9063bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a209d",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 157
  },
  "hsl": {
    "h": 267.84,
    "s": 66.138,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40656,
    "c": 0.18528,
    "h": 298.6
  },
  "luminance": 0.05641
}

Semantic roles & 50–950 ramp

primary
#5A209D
secondary
#90C157
accent
#E93F9A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A209D

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

Preview Lab → · Contrast checker → · Palette generator →

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