#5B2C91#5B2C91

#5B2C91 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.158 H 300.9°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#5B2C91
RGBrgb(91, 44, 145)
HSLhsl(268, 53%, 37%)
HSVhsv(268, 70%, 57%)
CMYKcmyk(37.2%, 69.7%, 0%, 43.1%)
CIE-LABlab(29.59, 42.07, -47.68)
CIE-LCHlch(29.59, 63.59, 311.42°)
OKLaboklab(41.15% 0.0814 -0.1358)
OKLCHoklch(41.15% 0.158 300.9)
XYZxyz(10.3247, 6.0698, 27.4102)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2C91 #62912C
analogous
#2C3091 #5B2C91 #8E2C91
triadic
#5B2C91 #915B2C #2C915B
tetradic
#5B2C91 #912C30 #62912C #2C918E
square
#5B2C91 #912C30 #62912C #2C918E
split-complementary
#5B2C91 #918E2C #30912C
monochromatic
#201033 #3E1E62 #5B2C91 #783AC0 #9867D1

Accessibility & contrast

On white

9.49
#5B2C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5B2C91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2C91
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2C91#FFFFFF#000000##FFFFFF
##5B2C911.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004594
Deuteranopia (green-blind)
#00458F
Tritanopia (blue-blind)
#4F445B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b2c91;
/* rgb */ color: rgb(91, 44, 145);
/* oklch */ color: oklch(41.2% 0.158 300.9);
Tailwind
colors: {
  custom: {
    50: '#8e69b2',
    500: '#5b2c91',
    950: '#000000',
  },
}
SCSS
$custom: #5b2c91;
$custom-light: #8e69b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2c91",
  "rgb": {
    "r": 91,
    "g": 44,
    "b": 145
  },
  "hsl": {
    "h": 267.921,
    "s": 53.439,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41151,
    "c": 0.15834,
    "h": 300.9
  },
  "luminance": 0.0607
}

Semantic roles & 50–950 ramp

primary
#5B2C91
secondary
#8FB762
accent
#DD4B99
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2C91

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

Preview Lab → · Contrast checker → · Palette generator →

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