#5B2B97#5B2B97

#5B2B97 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.167 H 299.3°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#5B2B97
RGBrgb(91, 43, 151)
HSLhsl(267, 56%, 38%)
HSVhsv(267, 72%, 59%)
CMYKcmyk(39.7%, 71.5%, 0%, 40.8%)
CIE-LABlab(29.88, 44.15, -50.90)
CIE-LCHlch(29.88, 67.38, 310.94°)
OKLaboklab(41.51% 0.0815 -0.1452)
OKLCHoklch(41.51% 0.167 299.3)
XYZxyz(10.7628, 6.1861, 29.8992)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2B97 #67972B
analogous
#2B3197 #5B2B97 #912B97
triadic
#5B2B97 #975B2B #2B975B
tetradic
#5B2B97 #972B31 #67972B #2B9791
square
#5B2B97 #972B31 #67972B #2B9791
split-complementary
#5B2B97 #97912B #31972B
monochromatic
#221038 #3E1D67 #5B2B97 #7839C7 #9868D4

Accessibility & contrast

On white

9.39
#5B2B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5B2B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2B97
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2B97#FFFFFF#000000##FFFFFF
##5B2B971.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#004595
Tritanopia (blue-blind)
#4D455E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b2b97;
/* rgb */ color: rgb(91, 43, 151);
/* oklch */ color: oklch(41.5% 0.167 299.3);
Tailwind
colors: {
  custom: {
    50: '#8f68b6',
    500: '#5b2b97',
    950: '#000000',
  },
}
SCSS
$custom: #5b2b97;
$custom-light: #8f68b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2b97",
  "rgb": {
    "r": 91,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 266.667,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41506,
    "c": 0.16655,
    "h": 299.3
  },
  "luminance": 0.06186
}

Semantic roles & 50–950 ramp

primary
#5B2B97
secondary
#94BB63
accent
#DF499C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2B97

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

Preview Lab → · Contrast checker → · Palette generator →

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