#5B2CB0#5B2CB0

#5B2CB0 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.8% C 0.194 H 292.8°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#5B2CB0
RGBrgb(91, 44, 176)
HSLhsl(261, 60%, 43%)
HSVhsv(261, 75%, 69%)
CMYKcmyk(48.3%, 75%, 0%, 31%)
CIE-LABlab(32.17, 50.32, -62.26)
CIE-LCHlch(32.17, 80.06, 308.95°)
OKLaboklab(43.78% 0.0751 -0.1786)
OKLCHoklch(43.78% 0.194 292.8)
XYZxyz(13.0494, 7.1597, 41.7603)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2CB0 #81B02C
analogous
#2C3FB0 #5B2CB0 #9D2CB0
triadic
#5B2CB0 #B05B2C #2CB05B
tetradic
#5B2CB0 #B02C3F #81B02C #2CB09D
square
#5B2CB0 #B02C3F #81B02C #2CB09D
split-complementary
#5B2CB0 #B09D2C #3FB02C
monochromatic
#28144E #42207F #5B2CB0 #7948D1 #9D79DD

Accessibility & contrast

On white

8.63
#5B2CB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5B2CB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2CB0
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2CB0#FFFFFF#000000##FFFFFF
##5B2CB01.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB4
Deuteranopia (green-blind)
#0049AD
Tritanopia (blue-blind)
#40506C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b2cb0;
/* rgb */ color: rgb(91, 44, 176);
/* oklch */ color: oklch(43.8% 0.194 292.8);
Tailwind
colors: {
  custom: {
    50: '#926ac9',
    500: '#5b2cb0',
    950: '#000000',
  },
}
SCSS
$custom: #5b2cb0;
$custom-light: #926ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2cb0",
  "rgb": {
    "r": 91,
    "g": 44,
    "b": 176
  },
  "hsl": {
    "h": 261.364,
    "s": 60,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43782,
    "c": 0.19376,
    "h": 292.8
  },
  "luminance": 0.0716
}

Semantic roles & 50–950 ramp

primary
#5B2CB0
secondary
#A8C672
accent
#E345AB
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2CB0

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

Preview Lab → · Contrast checker → · Palette generator →

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