#5A209A#5A209A

#5A209A is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.4% C 0.182 H 299.5°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#5A209A
RGBrgb(90, 32, 154)
HSLhsl(269, 66%, 36%)
HSVhsv(269, 79%, 60%)
CMYKcmyk(41.6%, 79.2%, 0%, 39.6%)
CIE-LABlab(28.22, 49.80, -55.44)
CIE-LCHlch(28.22, 74.52, 311.93°)
OKLaboklab(40.39% 0.0896 -0.1585)
OKLCHoklch(40.39% 0.182 299.5)
XYZxyz(10.5642, 5.5396, 31.0783)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A209A #609A20
analogous
#20239A #5A209A #97209A
triadic
#5A209A #9A5A20 #209A5A
tetradic
#5A209A #9A2023 #609A20 #209A97
square
#5A209A #9A2023 #609A20 #209A97
split-complementary
#5A209A #9A9720 #239A20
monochromatic
#1F0B35 #3C1567 #5A209A #782BCD #9758DC

Accessibility & contrast

On white

9.96
#5A209A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5A209A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A209A
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A209A#FFFFFF#000000##FFFFFF
##5A209A1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429D
Deuteranopia (green-blind)
#004298
Tritanopia (blue-blind)
#4B415D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a209a;
/* rgb */ color: rgb(90, 32, 154);
/* oklch */ color: oklch(40.4% 0.182 299.5);
Tailwind
colors: {
  custom: {
    50: '#8f63b9',
    500: '#5a209a',
    950: '#000000',
  },
}
SCSS
$custom: #5a209a;
$custom-light: #8f63b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a209a",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 154
  },
  "hsl": {
    "h": 268.525,
    "s": 65.591,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40387,
    "c": 0.18213,
    "h": 299.5
  },
  "luminance": 0.0554
}

Semantic roles & 50–950 ramp

primary
#5A209A
secondary
#8EC056
accent
#E93F98
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A209A

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

Preview Lab → · Contrast checker → · Palette generator →

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