#5B2CBA#5B2CBA

#5B2CBA is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.7% C 0.205 H 290.7°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#5B2CBA
RGBrgb(91, 44, 186)
HSLhsl(260, 62%, 45%)
HSVhsv(260, 76%, 73%)
CMYKcmyk(51.1%, 76.3%, 0%, 27.1%)
CIE-LABlab(33.07, 53.02, -66.72)
CIE-LCHlch(33.07, 85.22, 308.47°)
OKLaboklab(44.69% 0.0724 -0.1917)
OKLCHoklch(44.69% 0.205 290.7)
XYZxyz(14.0755, 7.5701, 47.1644)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2CBA #8BBA2C
analogous
#2C44BA #5B2CBA #A22CBA
triadic
#5B2CBA #BA5B2C #2CBA5B
tetradic
#5B2CBA #BA2C44 #8BBA2C #2CBAA2
square
#5B2CBA #BA2C44 #8BBA2C #2CBAA2
split-complementary
#5B2CBA #BAA22C #44BA2C
monochromatic
#2B1557 #432089 #5B2CBA #7B4ED5 #A080E1

Accessibility & contrast

On white

8.35
#5B2CBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5B2CBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2CBA
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2CBA#FFFFFF#000000##FFFFFF
##5B2CBA1.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BE
Deuteranopia (green-blind)
#004BB7
Tritanopia (blue-blind)
#3A5472
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5b2cba;
/* rgb */ color: rgb(91, 44, 186);
/* oklch */ color: oklch(44.7% 0.205 290.7);
Tailwind
colors: {
  custom: {
    50: '#936bd0',
    500: '#5b2cba',
    950: '#000000',
  },
}
SCSS
$custom: #5b2cba;
$custom-light: #936bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2cba",
  "rgb": {
    "r": 91,
    "g": 44,
    "b": 186
  },
  "hsl": {
    "h": 259.859,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44692,
    "c": 0.20492,
    "h": 290.7
  },
  "luminance": 0.07571
}

Semantic roles & 50–950 ramp

primary
#5B2CBA
secondary
#AFCA78
accent
#E543AF
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5B2CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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