#5B2BB7#5B2BB7

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

Color values

HEX#5B2BB7
RGBrgb(91, 43, 183)
HSLhsl(261, 62%, 44%)
HSVhsv(261, 77%, 72%)
CMYKcmyk(50.3%, 76.5%, 0%, 28.2%)
CIE-LABlab(32.64, 52.67, -65.66)
CIE-LCHlch(32.64, 84.17, 308.74°)
OKLaboklab(44.3% 0.074 -0.1886)
OKLCHoklch(44.3% 0.203 291.4)
XYZxyz(13.7231, 7.3703, 45.4901)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2BB7 #87B72B
analogous
#2B41B7 #5B2BB7 #A12BB7
triadic
#5B2BB7 #B75B2B #2BB75B
tetradic
#5B2BB7 #B72B41 #87B72B #2BB7A1
square
#5B2BB7 #B72B41 #87B72B #2BB7A1
split-complementary
#5B2BB7 #B7A12B #41B72B
monochromatic
#2A1454 #421F85 #5B2BB7 #7A4BD5 #9E7CE0

Accessibility & contrast

On white

8.49
#5B2BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5B2BB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2BB7
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2BB7#FFFFFF#000000##FFFFFF
##5B2BB71.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBB
Deuteranopia (green-blind)
#004AB4
Tritanopia (blue-blind)
#3C5270
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5b2bb7;
/* rgb */ color: rgb(91, 43, 183);
/* oklch */ color: oklch(44.3% 0.203 291.4);
Tailwind
colors: {
  custom: {
    50: '#936ace',
    500: '#5b2bb7',
    950: '#000000',
  },
}
SCSS
$custom: #5b2bb7;
$custom-light: #936ace;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2bb7",
  "rgb": {
    "r": 91,
    "g": 43,
    "b": 183
  },
  "hsl": {
    "h": 260.571,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44303,
    "c": 0.20258,
    "h": 291.4
  },
  "luminance": 0.07371
}

Semantic roles & 50–950 ramp

primary
#5B2BB7
secondary
#ACC975
accent
#E543AD
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5B2BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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