#5B209B#5B209B

#5B209B is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.6% C 0.183 H 299.7°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#5B209B
RGBrgb(91, 32, 155)
HSLhsl(269, 66%, 37%)
HSVhsv(269, 79%, 61%)
CMYKcmyk(41.3%, 79.4%, 0%, 39.2%)
CIE-LABlab(28.44, 50.21, -55.68)
CIE-LCHlch(28.44, 74.98, 312.04°)
OKLaboklab(40.6% 0.0909 -0.1592)
OKLCHoklch(40.6% 0.183 299.7)
XYZxyz(10.7458, 5.6236, 31.5233)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B209B #609B20
analogous
#20239B #5B209B #99209B
triadic
#5B209B #9B5B20 #209B5B
tetradic
#5B209B #9B2023 #609B20 #209B99
square
#5B209B #9B2023 #609B20 #209B99
split-complementary
#5B209B #9B9920 #239B20
monochromatic
#1F0B36 #3D1668 #5B209B #792ACE #9859DD

Accessibility & contrast

On white

9.88
#5B209B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B209B
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B209B#FFFFFF#000000##FFFFFF
##5B209B1.009.882.129.88
#FFFFFF9.881.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b209b;
/* rgb */ color: rgb(91, 32, 155);
/* oklch */ color: oklch(40.6% 0.183 299.7);
Tailwind
colors: {
  custom: {
    50: '#9063b9',
    500: '#5b209b',
    950: '#000000',
  },
}
SCSS
$custom: #5b209b;
$custom-light: #9063b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b209b",
  "rgb": {
    "r": 91,
    "g": 32,
    "b": 155
  },
  "hsl": {
    "h": 268.78,
    "s": 65.775,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40599,
    "c": 0.18332,
    "h": 299.7
  },
  "luminance": 0.05624
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B209B

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

Preview Lab → · Contrast checker → · Palette generator →

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