#5B209E#5B209E

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

Color values

HEX#5B209E
RGBrgb(91, 32, 158)
HSLhsl(268, 66%, 37%)
HSVhsv(268, 80%, 62%)
CMYKcmyk(42.4%, 79.7%, 0%, 38%)
CIE-LABlab(28.71, 50.96, -57.08)
CIE-LCHlch(28.71, 76.51, 311.76°)
OKLaboklab(40.87% 0.09 -0.1633)
OKLCHoklch(40.87% 0.186 298.8)
XYZxyz(11.0009, 5.7256, 32.8667)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B209E #639E20
analogous
#20249E #5B209E #9A209E
triadic
#5B209E #9E5B20 #209E5B
tetradic
#5B209E #9E2024 #639E20 #209E9A
square
#5B209E #9E2024 #639E20 #209E9A
split-complementary
#5B209E #9E9A20 #249E20
monochromatic
#200B38 #3E166B #5B209E #782AD1 #985BDE

Accessibility & contrast

On white

9.79
#5B209E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5B209E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B209E
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B209E#FFFFFF#000000##FFFFFF
##5B209E1.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#4A435F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b209e;
/* rgb */ color: rgb(91, 32, 158);
/* oklch */ color: oklch(40.9% 0.186 298.8);
Tailwind
colors: {
  custom: {
    50: '#9063bc',
    500: '#5b209e',
    950: '#000000',
  },
}
SCSS
$custom: #5b209e;
$custom-light: #9063bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b209e",
  "rgb": {
    "r": 91,
    "g": 32,
    "b": 158
  },
  "hsl": {
    "h": 268.095,
    "s": 66.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40867,
    "c": 0.18646,
    "h": 298.8
  },
  "luminance": 0.05726
}

Semantic roles & 50–950 ramp

primary
#5B209E
secondary
#90C258
accent
#E93F99
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B209E

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

Preview Lab → · Contrast checker → · Palette generator →

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