#5B2BAE#5B2BAE

#5B2BAE is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.5% C 0.193 H 293.4°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#5B2BAE
RGBrgb(91, 43, 174)
HSLhsl(262, 60%, 43%)
HSVhsv(262, 75%, 68%)
CMYKcmyk(47.7%, 75.3%, 0%, 31.8%)
CIE-LABlab(31.82, 50.26, -61.63)
CIE-LCHlch(31.82, 79.52, 309.20°)
OKLaboklab(43.49% 0.0764 -0.1768)
OKLCHoklch(43.49% 0.193 293.4)
XYZxyz(12.8161, 7.0075, 40.7135)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2BAE #7EAE2B
analogous
#2B3CAE #5B2BAE #9D2BAE
triadic
#5B2BAE #AE5B2B #2BAE5B
tetradic
#5B2BAE #AE2B3C #7EAE2B #2BAE9D
square
#5B2BAE #AE2B3C #7EAE2B #2BAE9D
split-complementary
#5B2BAE #AE9D2B #3CAE2B
monochromatic
#28134C #411F7D #5B2BAE #7845D1 #9C76DD

Accessibility & contrast

On white

8.74
#5B2BAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5B2BAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2BAE
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2BAE#FFFFFF#000000##FFFFFF
##5B2BAE1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB2
Deuteranopia (green-blind)
#0048AC
Tritanopia (blue-blind)
#424E6B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5b2bae;
/* rgb */ color: rgb(91, 43, 174);
/* oklch */ color: oklch(43.5% 0.193 293.4);
Tailwind
colors: {
  custom: {
    50: '#9269c7',
    500: '#5b2bae',
    950: '#000000',
  },
}
SCSS
$custom: #5b2bae;
$custom-light: #9269c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2bae",
  "rgb": {
    "r": 91,
    "g": 43,
    "b": 174
  },
  "hsl": {
    "h": 261.985,
    "s": 60.369,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43486,
    "c": 0.19258,
    "h": 293.4
  },
  "luminance": 0.07008
}

Semantic roles & 50–950 ramp

primary
#5B2BAE
secondary
#A6C570
accent
#E444A9
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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