#5B2AC5#5B2AC5

#5B2AC5 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.5% C 0.219 H 288.8°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#5B2AC5
RGBrgb(91, 42, 197)
HSLhsl(259, 65%, 47%)
HSVhsv(259, 79%, 77%)
CMYKcmyk(53.8%, 78.7%, 0%, 22.7%)
CIE-LABlab(33.80, 56.86, -72.00)
CIE-LCHlch(33.80, 91.75, 308.30°)
OKLaboklab(45.51% 0.0707 -0.2071)
OKLCHoklch(45.51% 0.219 288.8)
XYZxyz(15.2174, 7.9105, 53.5376)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2AC5 #94C52A
analogous
#2A46C5 #5B2AC5 #A92AC5
triadic
#5B2AC5 #C55B2A #2AC55B
tetradic
#5B2AC5 #C52A46 #94C52A #2AC5A9
square
#5B2AC5 #C52A46 #94C52A #2AC5A9
split-complementary
#5B2AC5 #C5A92A #46C52A
monochromatic
#2C1460 #441F93 #5B2AC5 #7D52DA #A385E5

Accessibility & contrast

On white

8.13
#5B2AC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5B2AC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2AC5
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2AC5#FFFFFF#000000##FFFFFF
##5B2AC51.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C9
Deuteranopia (green-blind)
#004CC2
Tritanopia (blue-blind)
#305778
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5b2ac5;
/* rgb */ color: rgb(91, 42, 197);
/* oklch */ color: oklch(45.5% 0.219 288.8);
Tailwind
colors: {
  custom: {
    50: '#956ad8',
    500: '#5b2ac5',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ac5;
$custom-light: #956ad8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ac5",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 197
  },
  "hsl": {
    "h": 258.968,
    "s": 64.854,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45511,
    "c": 0.21885,
    "h": 288.8
  },
  "luminance": 0.07911
}

Semantic roles & 50–950 ramp

primary
#5B2AC5
secondary
#B4CE7D
accent
#E840B3
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0F0715
muted
#7E7A83

Preview Lab

Preview with #5B2AC5

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

Preview Lab → · Contrast checker → · Palette generator →

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