#5B2BB5#5B2BB5

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

Color values

HEX#5B2BB5
RGBrgb(91, 43, 181)
HSLhsl(261, 62%, 44%)
HSVhsv(261, 76%, 71%)
CMYKcmyk(49.7%, 76.2%, 0%, 29%)
CIE-LABlab(32.45, 52.13, -64.77)
CIE-LCHlch(32.45, 83.15, 308.83°)
OKLaboklab(44.12% 0.0746 -0.186)
OKLCHoklch(44.12% 0.2 291.9)
XYZxyz(13.5164, 7.2876, 44.4016)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2BB5 #85B52B
analogous
#2B40B5 #5B2BB5 #A02BB5
triadic
#5B2BB5 #B55B2B #2BB55B
tetradic
#5B2BB5 #B52B40 #85B52B #2BB5A0
square
#5B2BB5 #B52B40 #85B52B #2BB5A0
split-complementary
#5B2BB5 #B5A02B #40B52B
monochromatic
#291452 #421F84 #5B2BB5 #7A49D4 #9E7BE0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B2BB5#FFFFFF#000000##FFFFFF
##5B2BB51.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)
#004EB9
Deuteranopia (green-blind)
#0049B2
Tritanopia (blue-blind)
#3D516F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b2bb5;
/* rgb */ color: rgb(91, 43, 181);
/* oklch */ color: oklch(44.1% 0.200 291.9);
Tailwind
colors: {
  custom: {
    50: '#926acc',
    500: '#5b2bb5',
    950: '#000000',
  },
}
SCSS
$custom: #5b2bb5;
$custom-light: #926acc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2bb5",
  "rgb": {
    "r": 91,
    "g": 43,
    "b": 181
  },
  "hsl": {
    "h": 260.87,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.4412,
    "c": 0.20037,
    "h": 291.9
  },
  "luminance": 0.07288
}

Semantic roles & 50–950 ramp

primary
#5B2BB5
secondary
#ABC874
accent
#E543AC
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5B2BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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