#5B2AC0#5B2AC0

#5B2AC0 is a mid, highly saturated violet. Relative luminance 0.077; OKLCH L 45.0% C 0.213 H 289.8°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#5B2AC0
RGBrgb(91, 42, 192)
HSLhsl(260, 64%, 46%)
HSVhsv(260, 78%, 75%)
CMYKcmyk(52.6%, 78.1%, 0%, 24.7%)
CIE-LABlab(33.32, 55.53, -69.85)
CIE-LCHlch(33.32, 89.23, 308.48°)
OKLaboklab(45.04% 0.0722 -0.2008)
OKLCHoklch(45.04% 0.213 289.8)
XYZxyz(14.6540, 7.6852, 50.5702)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2AC0 #8FC02A
analogous
#2A44C0 #5B2AC0 #A62AC0
triadic
#5B2AC0 #C05B2A #2AC05B
tetradic
#5B2AC0 #C02A44 #8FC02A #2AC0A6
square
#5B2AC0 #C02A44 #8FC02A #2AC0A6
split-complementary
#5B2AC0 #C0A62A #44C02A
monochromatic
#2B145C #431F8E #5B2AC0 #7C4FD8 #A181E3

Accessibility & contrast

On white

8.28
#5B2AC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5B2AC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2AC0
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2AC0#FFFFFF#000000##FFFFFF
##5B2AC01.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C4
Deuteranopia (green-blind)
#004BBD
Tritanopia (blue-blind)
#355575
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5b2ac0;
/* rgb */ color: rgb(91, 42, 192);
/* oklch */ color: oklch(45.0% 0.213 289.8);
Tailwind
colors: {
  custom: {
    50: '#946ad4',
    500: '#5b2ac0',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ac0;
$custom-light: #946ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ac0",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 192
  },
  "hsl": {
    "h": 259.6,
    "s": 64.103,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45035,
    "c": 0.21342,
    "h": 289.8
  },
  "luminance": 0.07686
}

Semantic roles & 50–950 ramp

primary
#5B2AC0
secondary
#B1CC7A
accent
#E741B1
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5B2AC0

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

Preview Lab → · Contrast checker → · Palette generator →

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