#5B2CB6#5B2CB6

#5B2CB6 is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.3% C 0.200 H 291.5°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#5B2CB6
RGBrgb(91, 44, 182)
HSLhsl(260, 61%, 44%)
HSVhsv(260, 76%, 71%)
CMYKcmyk(50%, 75.8%, 0%, 28.6%)
CIE-LABlab(32.71, 51.94, -64.95)
CIE-LCHlch(32.71, 83.16, 308.65°)
OKLaboklab(44.33% 0.0735 -0.1865)
OKLCHoklch(44.33% 0.2 291.5)
XYZxyz(13.6562, 7.4024, 44.9562)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2CB6 #87B62C
analogous
#2C42B6 #5B2CB6 #A02CB6
triadic
#5B2CB6 #B65B2C #2CB65B
tetradic
#5B2CB6 #B62C42 #87B62C #2CB6A0
square
#5B2CB6 #B62C42 #87B62C #2CB6A0
split-complementary
#5B2CB6 #B6A02C #42B62C
monochromatic
#2A1453 #422085 #5B2CB6 #7A4CD4 #9E7DE0

Accessibility & contrast

On white

8.47
#5B2CB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5B2CB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2CB6
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2CB6#FFFFFF#000000##FFFFFF
##5B2CB61.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBA
Deuteranopia (green-blind)
#004AB3
Tritanopia (blue-blind)
#3C526F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5b2cb6;
/* rgb */ color: rgb(91, 44, 182);
/* oklch */ color: oklch(44.3% 0.200 291.5);
Tailwind
colors: {
  custom: {
    50: '#936acd',
    500: '#5b2cb6',
    950: '#000000',
  },
}
SCSS
$custom: #5b2cb6;
$custom-light: #936acd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2cb6",
  "rgb": {
    "r": 91,
    "g": 44,
    "b": 182
  },
  "hsl": {
    "h": 260.435,
    "s": 61.062,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44325,
    "c": 0.20047,
    "h": 291.5
  },
  "luminance": 0.07403
}

Semantic roles & 50–950 ramp

primary
#5B2CB6
secondary
#ACC876
accent
#E444AD
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5B2CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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