#5B2DAC#5B2DAC

#5B2DAC is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.5% C 0.188 H 293.6°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#5B2DAC
RGBrgb(91, 45, 172)
HSLhsl(262, 59%, 43%)
HSVhsv(262, 74%, 67%)
CMYKcmyk(47.1%, 73.8%, 0%, 32.5%)
CIE-LABlab(31.99, 48.76, -60.17)
CIE-LCHlch(31.99, 77.45, 309.02°)
OKLaboklab(43.55% 0.0752 -0.1725)
OKLCHoklch(43.55% 0.188 293.6)
XYZxyz(12.6971, 7.0791, 39.7191)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2DAC #7EAC2D
analogous
#2D3FAC #5B2DAC #9A2DAC
triadic
#5B2DAC #AC5B2D #2DAC5B
tetradic
#5B2DAC #AC2D3F #7EAC2D #2DAC9A
square
#5B2DAC #AC2D3F #7EAC2D #2DAC9A
split-complementary
#5B2DAC #AC9A2D #3FAC2D
monochromatic
#28144B #41207B #5B2DAC #7847CF #9C78DC

Accessibility & contrast

On white

8.69
#5B2DAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5B2DAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2DAC
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2DAC#FFFFFF#000000##FFFFFF
##5B2DAC1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB0
Deuteranopia (green-blind)
#0049AA
Tritanopia (blue-blind)
#434E6A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5b2dac;
/* rgb */ color: rgb(91, 45, 172);
/* oklch */ color: oklch(43.5% 0.188 293.6);
Tailwind
colors: {
  custom: {
    50: '#916ac6',
    500: '#5b2dac',
    950: '#000000',
  },
}
SCSS
$custom: #5b2dac;
$custom-light: #916ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2dac",
  "rgb": {
    "r": 91,
    "g": 45,
    "b": 172
  },
  "hsl": {
    "h": 261.732,
    "s": 58.525,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43546,
    "c": 0.18817,
    "h": 293.6
  },
  "luminance": 0.07079
}

Semantic roles & 50–950 ramp

primary
#5B2DAC
secondary
#A6C471
accent
#E246A9
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2DAC

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

Preview Lab → · Contrast checker → · Palette generator →

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