#5B2BB4#5B2BB4

#5B2BB4 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 44.0% C 0.199 H 292.1°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#5B2BB4
RGBrgb(91, 43, 180)
HSLhsl(261, 61%, 44%)
HSVhsv(261, 76%, 71%)
CMYKcmyk(49.4%, 76.1%, 0%, 29.4%)
CIE-LABlab(32.36, 51.87, -64.33)
CIE-LCHlch(32.36, 82.63, 308.88°)
OKLaboklab(44.03% 0.0749 -0.1847)
OKLCHoklch(44.03% 0.199 292.1)
XYZxyz(13.4142, 7.2467, 43.8631)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2BB4 #84B42B
analogous
#2B3FB4 #5B2BB4 #9F2BB4
triadic
#5B2BB4 #B45B2B #2BB45B
tetradic
#5B2BB4 #B42B3F #84B42B #2BB49F
square
#5B2BB4 #B42B3F #84B42B #2BB49F
split-complementary
#5B2BB4 #B49F2B #3FB42B
monochromatic
#291351 #421F83 #5B2BB4 #7949D3 #9E7ADF

Accessibility & contrast

On white

8.57
#5B2BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5B2BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2BB4
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2BB4#FFFFFF#000000##FFFFFF
##5B2BB41.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0049B1
Tritanopia (blue-blind)
#3E516E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b2bb4;
/* rgb */ color: rgb(91, 43, 180);
/* oklch */ color: oklch(44.0% 0.199 292.1);
Tailwind
colors: {
  custom: {
    50: '#926acc',
    500: '#5b2bb4',
    950: '#000000',
  },
}
SCSS
$custom: #5b2bb4;
$custom-light: #926acc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2bb4",
  "rgb": {
    "r": 91,
    "g": 43,
    "b": 180
  },
  "hsl": {
    "h": 261.022,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44028,
    "c": 0.19927,
    "h": 292.1
  },
  "luminance": 0.07247
}

Semantic roles & 50–950 ramp

primary
#5B2BB4
secondary
#AAC773
accent
#E543AC
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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