#5B207B#5B207B

#5B207B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.150 H 310.9°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#5B207B
RGBrgb(91, 32, 123)
HSLhsl(279, 59%, 30%)
HSVhsv(279, 74%, 48%)
CMYKcmyk(26%, 74%, 0%, 51.8%)
CIE-LABlab(25.82, 42.48, -40.04)
CIE-LCHlch(25.82, 58.37, 316.70°)
OKLaboklab(37.94% 0.098 -0.1132)
OKLCHoklch(37.94% 0.15 310.9)
XYZxyz(8.4054, 4.6874, 19.1970)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B207B #407B20
analogous
#2D207B #5B207B #7B206D
triadic
#5B207B #7B5B20 #207B5B
tetradic
#5B207B #7B2D20 #407B20 #206D7B
square
#5B207B #7B2D20 #407B20 #206D7B
split-complementary
#5B207B #6D7B20 #207B2D
monochromatic
#13071A #37134A #5B207B #7F2DAC #9F46CF

Accessibility & contrast

On white

10.84
#5B207B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5B207B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B207B
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B207B#FFFFFF#000000##FFFFFF
##5B207B1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#113E79
Tritanopia (blue-blind)
#57344B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5b207b;
/* rgb */ color: rgb(91, 32, 123);
/* oklch */ color: oklch(37.9% 0.150 310.9);
Tailwind
colors: {
  custom: {
    50: '#8d61a2',
    500: '#5b207b',
    950: '#000000',
  },
}
SCSS
$custom: #5b207b;
$custom-light: #8d61a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b207b",
  "rgb": {
    "r": 91,
    "g": 32,
    "b": 123
  },
  "hsl": {
    "h": 278.901,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37938,
    "c": 0.14976,
    "h": 310.9
  },
  "luminance": 0.04687
}

Semantic roles & 50–950 ramp

primary
#5B207B
secondary
#6CAE49
accent
#E2467D
background
#F8F5FA
surface
#F0EAF3
border
#CBC6CD
text
#0D050F
muted
#7D797F

Preview Lab

Preview with #5B207B

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

Preview Lab → · Contrast checker → · Palette generator →

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