#5B2DAE#5B2DAE

#5B2DAE is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.190 H 293.1°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#5B2DAE
RGBrgb(91, 45, 174)
HSLhsl(261, 59%, 43%)
HSVhsv(261, 74%, 68%)
CMYKcmyk(47.7%, 74.1%, 0%, 31.8%)
CIE-LABlab(32.16, 49.30, -61.08)
CIE-LCHlch(32.16, 78.50, 308.91°)
OKLaboklab(43.72% 0.0747 -0.1752)
OKLCHoklch(43.72% 0.19 293.1)
XYZxyz(12.8906, 7.1565, 40.7383)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2DAE #80AE2D
analogous
#2D40AE #5B2DAE #9B2DAE
triadic
#5B2DAE #AE5B2D #2DAE5B
tetradic
#5B2DAE #AE2D40 #80AE2D #2DAE9B
square
#5B2DAE #AE2D40 #80AE2D #2DAE9B
split-complementary
#5B2DAE #AE9B2D #40AE2D
monochromatic
#28144D #42207D #5B2DAE #7948D0 #9C79DC

Accessibility & contrast

On white

8.64
#5B2DAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5B2DAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2DAE
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2DAE#FFFFFF#000000##FFFFFF
##5B2DAE1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB2
Deuteranopia (green-blind)
#0049AC
Tritanopia (blue-blind)
#414F6B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b2dae;
/* rgb */ color: rgb(91, 45, 174);
/* oklch */ color: oklch(43.7% 0.190 293.1);
Tailwind
colors: {
  custom: {
    50: '#916bc7',
    500: '#5b2dae',
    950: '#000000',
  },
}
SCSS
$custom: #5b2dae;
$custom-light: #916bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2dae",
  "rgb": {
    "r": 91,
    "g": 45,
    "b": 174
  },
  "hsl": {
    "h": 261.395,
    "s": 58.904,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43723,
    "c": 0.19043,
    "h": 293.1
  },
  "luminance": 0.07157
}

Semantic roles & 50–950 ramp

primary
#5B2DAE
secondary
#A7C472
accent
#E246AA
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2DAE

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

Preview Lab → · Contrast checker → · Palette generator →

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