#5B2CAB#5B2CAB

#5B2CAB is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.188 H 293.9°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#5B2CAB
RGBrgb(91, 44, 171)
HSLhsl(262, 59%, 42%)
HSVhsv(262, 74%, 67%)
CMYKcmyk(46.8%, 74.3%, 0%, 32.9%)
CIE-LABlab(31.73, 48.98, -59.99)
CIE-LCHlch(31.73, 77.44, 309.23°)
OKLaboklab(43.34% 0.0763 -0.172)
OKLCHoklch(43.34% 0.188 293.9)
XYZxyz(12.5637, 6.9654, 39.2027)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2CAB #7CAB2C
analogous
#2C3CAB #5B2CAB #9B2CAB
triadic
#5B2CAB #AB5B2C #2CAB5B
tetradic
#5B2CAB #AB2C3C #7CAB2C #2CAB9B
square
#5B2CAB #AB2C3C #7CAB2C #2CAB9B
split-complementary
#5B2CAB #AB9B2C #3CAB2C
monochromatic
#27134A #411F7A #5B2CAB #7845CF #9B76DC

Accessibility & contrast

On white

8.77
#5B2CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5B2CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2CAB
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2CAB#FFFFFF#000000##FFFFFF
##5B2CAB1.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#0048A9
Tritanopia (blue-blind)
#434E69
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5b2cab;
/* rgb */ color: rgb(91, 44, 171);
/* oklch */ color: oklch(43.3% 0.188 293.9);
Tailwind
colors: {
  custom: {
    50: '#916ac5',
    500: '#5b2cab',
    950: '#000000',
  },
}
SCSS
$custom: #5b2cab;
$custom-light: #916ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2cab",
  "rgb": {
    "r": 91,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 262.205,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43337,
    "c": 0.18813,
    "h": 293.9
  },
  "luminance": 0.06966
}

Semantic roles & 50–950 ramp

primary
#5B2CAB
secondary
#A4C36F
accent
#E246A8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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