#5B2CC0#5B2CC0

#5B2CC0 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.3% C 0.212 H 289.5°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#5B2CC0
RGBrgb(91, 44, 192)
HSLhsl(259, 63%, 46%)
HSVhsv(259, 77%, 75%)
CMYKcmyk(52.6%, 77.1%, 0%, 24.7%)
CIE-LABlab(33.63, 54.64, -69.34)
CIE-LCHlch(33.63, 88.28, 308.24°)
OKLaboklab(45.25% 0.0707 -0.1994)
OKLCHoklch(45.25% 0.212 289.5)
XYZxyz(14.7267, 7.8306, 50.5944)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2CC0 #91C02C
analogous
#2C47C0 #5B2CC0 #A52CC0
triadic
#5B2CC0 #C05B2C #2CC05B
tetradic
#5B2CC0 #C02C47 #91C02C #2CC0A5
square
#5B2CC0 #C02C47 #91C02C #2CC0A5
split-complementary
#5B2CC0 #C0A52C #47C02C
monochromatic
#2C155C #43218E #5B2CC0 #7C52D7 #A284E3

Accessibility & contrast

On white

8.18
#5B2CC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5B2CC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2CC0
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2CC0#FFFFFF#000000##FFFFFF
##5B2CC01.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C4
Deuteranopia (green-blind)
#004BBD
Tritanopia (blue-blind)
#355675
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5b2cc0;
/* rgb */ color: rgb(91, 44, 192);
/* oklch */ color: oklch(45.3% 0.212 289.5);
Tailwind
colors: {
  custom: {
    50: '#946bd4',
    500: '#5b2cc0',
    950: '#000000',
  },
}
SCSS
$custom: #5b2cc0;
$custom-light: #946bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2cc0",
  "rgb": {
    "r": 91,
    "g": 44,
    "b": 192
  },
  "hsl": {
    "h": 259.054,
    "s": 62.712,
    "l": 46.275
  },
  "oklch": {
    "l": 0.4525,
    "c": 0.21155,
    "h": 289.5
  },
  "luminance": 0.07831
}

Semantic roles & 50–950 ramp

primary
#5B2CC0
secondary
#B2CC7C
accent
#E642B2
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5B2CC0

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

Preview Lab → · Contrast checker → · Palette generator →

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