#5B2CB1#5B2CB1

#5B2CB1 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.9% C 0.195 H 292.6°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#5B2CB1
RGBrgb(91, 44, 177)
HSLhsl(261, 60%, 43%)
HSVhsv(261, 75%, 69%)
CMYKcmyk(48.6%, 75.1%, 0%, 30.6%)
CIE-LABlab(32.26, 50.59, -62.71)
CIE-LCHlch(32.26, 80.58, 308.89°)
OKLaboklab(43.87% 0.0748 -0.1799)
OKLCHoklch(43.87% 0.195 292.6)
XYZxyz(13.1487, 7.1994, 42.2833)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2CB1 #82B12C
analogous
#2C3FB1 #5B2CB1 #9D2CB1
triadic
#5B2CB1 #B15B2C #2CB15B
tetradic
#5B2CB1 #B12C3F #82B12C #2CB19D
square
#5B2CB1 #B12C3F #82B12C #2CB19D
split-complementary
#5B2CB1 #B19D2C #3FB12C
monochromatic
#29144F #422080 #5B2CB1 #7949D2 #9D7ADE

Accessibility & contrast

On white

8.61
#5B2CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5B2CB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2CB1
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2CB1#FFFFFF#000000##FFFFFF
##5B2CB11.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB5
Deuteranopia (green-blind)
#0049AE
Tritanopia (blue-blind)
#40506D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b2cb1;
/* rgb */ color: rgb(91, 44, 177);
/* oklch */ color: oklch(43.9% 0.195 292.6);
Tailwind
colors: {
  custom: {
    50: '#926ac9',
    500: '#5b2cb1',
    950: '#000000',
  },
}
SCSS
$custom: #5b2cb1;
$custom-light: #926ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2cb1",
  "rgb": {
    "r": 91,
    "g": 44,
    "b": 177
  },
  "hsl": {
    "h": 261.203,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43872,
    "c": 0.19489,
    "h": 292.6
  },
  "luminance": 0.072
}

Semantic roles & 50–950 ramp

primary
#5B2CB1
secondary
#A9C673
accent
#E344AB
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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