#5B209A#5B209A

#5B209A is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.182 H 300.0°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#5B209A
RGBrgb(91, 32, 154)
HSLhsl(269, 66%, 36%)
HSVhsv(269, 79%, 60%)
CMYKcmyk(40.9%, 79.2%, 0%, 39.6%)
CIE-LABlab(28.35, 49.96, -55.22)
CIE-LCHlch(28.35, 74.47, 312.14°)
OKLaboklab(40.51% 0.0911 -0.1579)
OKLCHoklch(40.51% 0.182 300)
XYZxyz(10.6622, 5.5901, 31.0829)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B209A #5F9A20
analogous
#20229A #5B209A #98209A
triadic
#5B209A #9A5B20 #209A5B
tetradic
#5B209A #9A2022 #5F9A20 #209A98
square
#5B209A #9A2022 #5F9A20 #209A98
split-complementary
#5B209A #9A9820 #229A20
monochromatic
#1F0B35 #3D1567 #5B209A #792BCD #9858DC

Accessibility & contrast

On white

9.92
#5B209A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5B209A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B209A
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B209A#FFFFFF#000000##FFFFFF
##5B209A1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b209a;
/* rgb */ color: rgb(91, 32, 154);
/* oklch */ color: oklch(40.5% 0.182 300.0);
Tailwind
colors: {
  custom: {
    50: '#9063b9',
    500: '#5b209a',
    950: '#000000',
  },
}
SCSS
$custom: #5b209a;
$custom-light: #9063b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b209a",
  "rgb": {
    "r": 91,
    "g": 32,
    "b": 154
  },
  "hsl": {
    "h": 269.016,
    "s": 65.591,
    "l": 36.471
  },
  "oklch": {
    "l": 0.4051,
    "c": 0.18228,
    "h": 300
  },
  "luminance": 0.0559
}

Semantic roles & 50–950 ramp

primary
#5B209A
secondary
#8DC056
accent
#E93F97
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B209A

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

Preview Lab → · Contrast checker → · Palette generator →

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