#5B2AB7#5B2AB7

#5B2AB7 is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.2% C 0.204 H 291.6°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#5B2AB7
RGBrgb(91, 42, 183)
HSLhsl(261, 63%, 44%)
HSVhsv(261, 77%, 72%)
CMYKcmyk(50.3%, 77%, 0%, 28.2%)
CIE-LABlab(32.48, 53.13, -65.92)
CIE-LCHlch(32.48, 84.66, 308.87°)
OKLaboklab(44.19% 0.0748 -0.1893)
OKLCHoklch(44.19% 0.204 291.6)
XYZxyz(13.6872, 7.2984, 45.4781)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2AB7 #86B72A
analogous
#2A40B7 #5B2AB7 #A22AB7
triadic
#5B2AB7 #B75B2A #2AB75B
tetradic
#5B2AB7 #B72A40 #86B72A #2AB7A2
square
#5B2AB7 #B72A40 #86B72A #2AB7A2
split-complementary
#5B2AB7 #B7A22A #40B72A
monochromatic
#291353 #421F85 #5B2AB7 #7A49D5 #9E7BE1

Accessibility & contrast

On white

8.54
#5B2AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5B2AB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2AB7
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2AB7#FFFFFF#000000##FFFFFF
##5B2AB71.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBB
Deuteranopia (green-blind)
#0049B4
Tritanopia (blue-blind)
#3C516F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b2ab7;
/* rgb */ color: rgb(91, 42, 183);
/* oklch */ color: oklch(44.2% 0.204 291.6);
Tailwind
colors: {
  custom: {
    50: '#9369ce',
    500: '#5b2ab7',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ab7;
$custom-light: #9369ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ab7",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 260.851,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44192,
    "c": 0.20357,
    "h": 291.6
  },
  "luminance": 0.07299
}

Semantic roles & 50–950 ramp

primary
#5B2AB7
secondary
#ABC974
accent
#E642AD
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5B2AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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