#5B2AC7#5B2AC7

#5B2AC7 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.7% C 0.221 H 288.5°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#5B2AC7
RGBrgb(91, 42, 199)
HSLhsl(259, 65%, 47%)
HSVhsv(259, 79%, 78%)
CMYKcmyk(54.3%, 78.9%, 0%, 22%)
CIE-LABlab(33.99, 57.40, -72.85)
CIE-LCHlch(33.99, 92.75, 308.23°)
OKLaboklab(45.7% 0.07 -0.2096)
OKLCHoklch(45.7% 0.221 288.5)
XYZxyz(15.4481, 8.0028, 54.7525)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2AC7 #96C72A
analogous
#2A48C7 #5B2AC7 #A92AC7
triadic
#5B2AC7 #C75B2A #2AC75B
tetradic
#5B2AC7 #C72A48 #96C72A #2AC7A9
square
#5B2AC7 #C72A48 #96C72A #2AC7A9
split-complementary
#5B2AC7 #C7A92A #48C72A
monochromatic
#2D1562 #441F94 #5B2AC7 #7E53DB #A486E5

Accessibility & contrast

On white

8.07
#5B2AC7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5B2AC7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2AC7
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2AC7#FFFFFF#000000##FFFFFF
##5B2AC71.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053CB
Deuteranopia (green-blind)
#004CC4
Tritanopia (blue-blind)
#2E5879
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5b2ac7;
/* rgb */ color: rgb(91, 42, 199);
/* oklch */ color: oklch(45.7% 0.221 288.5);
Tailwind
colors: {
  custom: {
    50: '#956ad9',
    500: '#5b2ac7',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ac7;
$custom-light: #956ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ac7",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 199
  },
  "hsl": {
    "h": 258.726,
    "s": 65.145,
    "l": 47.255
  },
  "oklch": {
    "l": 0.45703,
    "c": 0.22101,
    "h": 288.5
  },
  "luminance": 0.08004
}

Semantic roles & 50–950 ramp

primary
#5B2AC7
secondary
#B6CF7E
accent
#E840B4
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0F0715
muted
#7E7A83

Preview Lab

Preview with #5B2AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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