#5B2AC2#5B2AC2

#5B2AC2 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.2% C 0.216 H 289.4°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#5B2AC2
RGBrgb(91, 42, 194)
HSLhsl(259, 64%, 46%)
HSVhsv(259, 78%, 76%)
CMYKcmyk(53.1%, 78.4%, 0%, 23.9%)
CIE-LABlab(33.51, 56.06, -70.72)
CIE-LCHlch(33.51, 90.24, 308.41°)
OKLaboklab(45.23% 0.0716 -0.2034)
OKLCHoklch(45.23% 0.216 289.4)
XYZxyz(14.8771, 7.7744, 51.7452)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2AC2 #91C22A
analogous
#2A45C2 #5B2AC2 #A72AC2
triadic
#5B2AC2 #C25B2A #2AC25B
tetradic
#5B2AC2 #C22A45 #91C22A #2AC2A7
square
#5B2AC2 #C22A45 #91C22A #2AC2A7
split-complementary
#5B2AC2 #C2A72A #45C22A
monochromatic
#2C145D #431F90 #5B2AC2 #7C50D9 #A282E4

Accessibility & contrast

On white

8.22
#5B2AC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5B2AC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2AC2
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2AC2#FFFFFF#000000##FFFFFF
##5B2AC21.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C6
Deuteranopia (green-blind)
#004BBF
Tritanopia (blue-blind)
#335676
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5b2ac2;
/* rgb */ color: rgb(91, 42, 194);
/* oklch */ color: oklch(45.2% 0.216 289.4);
Tailwind
colors: {
  custom: {
    50: '#946ad6',
    500: '#5b2ac2',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ac2;
$custom-light: #946ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ac2",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 194
  },
  "hsl": {
    "h": 259.342,
    "s": 64.407,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45225,
    "c": 0.21559,
    "h": 289.4
  },
  "luminance": 0.07775
}

Semantic roles & 50–950 ramp

primary
#5B2AC2
secondary
#B2CD7B
accent
#E740B2
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5B2AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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