#5B209F#5B209F

#5B209F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.188 H 298.6°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#5B209F
RGBrgb(91, 32, 159)
HSLhsl(268, 66%, 37%)
HSVhsv(268, 80%, 62%)
CMYKcmyk(42.8%, 79.9%, 0%, 37.6%)
CIE-LABlab(28.80, 51.20, -57.54)
CIE-LCHlch(28.80, 77.02, 311.67°)
OKLaboklab(40.96% 0.0897 -0.1647)
OKLCHoklch(40.96% 0.188 298.6)
XYZxyz(11.0873, 5.7602, 33.3219)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B209F #649F20
analogous
#20259F #5B209F #9A209F
triadic
#5B209F #9F5B20 #209F5B
tetradic
#5B209F #9F2025 #649F20 #209F9A
square
#5B209F #9F2025 #649F20 #209F9A
split-complementary
#5B209F #9F9A20 #259F20
monochromatic
#210B39 #3E166C #5B209F #782AD2 #985BDE

Accessibility & contrast

On white

9.76
#5B209F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B209F
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B209F#FFFFFF#000000##FFFFFF
##5B209F1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#4A4360
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b209f;
/* rgb */ color: rgb(91, 32, 159);
/* oklch */ color: oklch(41.0% 0.188 298.6);
Tailwind
colors: {
  custom: {
    50: '#9063bc',
    500: '#5b209f',
    950: '#000000',
  },
}
SCSS
$custom: #5b209f;
$custom-light: #9063bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b209f",
  "rgb": {
    "r": 91,
    "g": 32,
    "b": 159
  },
  "hsl": {
    "h": 267.874,
    "s": 66.492,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40957,
    "c": 0.1875,
    "h": 298.6
  },
  "luminance": 0.0576
}

Semantic roles & 50–950 ramp

primary
#5B209F
secondary
#91C259
accent
#E93E9A
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B209F

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

Preview Lab → · Contrast checker → · Palette generator →

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