#5B2CA6#5B2CA6

#5B2CA6 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.182 H 295.1°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#5B2CA6
RGBrgb(91, 44, 166)
HSLhsl(263, 58%, 41%)
HSVhsv(263, 73%, 65%)
CMYKcmyk(45.2%, 73.5%, 0%, 34.9%)
CIE-LABlab(31.30, 47.63, -57.69)
CIE-LCHlch(31.30, 74.81, 309.55°)
OKLaboklab(42.9% 0.0775 -0.1652)
OKLCHoklch(42.9% 0.182 295.1)
XYZxyz(12.0961, 6.7784, 36.7400)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2CA6 #77A62C
analogous
#2C3AA6 #5B2CA6 #982CA6
triadic
#5B2CA6 #A65B2C #2CA65B
tetradic
#5B2CA6 #A62C3A #77A62C #2CA698
square
#5B2CA6 #A62C3A #77A62C #2CA698
split-complementary
#5B2CA6 #A6982C #3AA62C
monochromatic
#261245 #401F76 #5B2CA6 #7842CD #9A73DA

Accessibility & contrast

On white

8.91
#5B2CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5B2CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2CA6
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2CA6#FFFFFF#000000##FFFFFF
##5B2CA61.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAA
Deuteranopia (green-blind)
#0048A4
Tritanopia (blue-blind)
#464C66
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b2ca6;
/* rgb */ color: rgb(91, 44, 166);
/* oklch */ color: oklch(42.9% 0.182 295.1);
Tailwind
colors: {
  custom: {
    50: '#906ac1',
    500: '#5b2ca6',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ca6;
$custom-light: #906ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ca6",
  "rgb": {
    "r": 91,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 263.115,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42899,
    "c": 0.18248,
    "h": 295.1
  },
  "luminance": 0.06779
}

Semantic roles & 50–950 ramp

primary
#5B2CA6
secondary
#A1C16D
accent
#E146A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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