#5B2AAA#5B2AAA

#5B2AAA is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.189 H 294.5°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#5B2AAA
RGBrgb(91, 42, 170)
HSLhsl(263, 60%, 42%)
HSVhsv(263, 75%, 67%)
CMYKcmyk(46.5%, 75.3%, 0%, 33.3%)
CIE-LABlab(31.31, 49.66, -60.08)
CIE-LCHlch(31.31, 77.95, 309.57°)
OKLaboklab(43.01% 0.0783 -0.1722)
OKLCHoklch(43.01% 0.189 294.5)
XYZxyz(12.3961, 6.7820, 38.6783)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2AAA #79AA2A
analogous
#2A39AA #5B2AAA #9B2AAA
triadic
#5B2AAA #AA5B2A #2AAA5B
tetradic
#5B2AAA #AA2A39 #79AA2A #2AAA9B
square
#5B2AAA #AA2A39 #79AA2A #2AAA9B
split-complementary
#5B2AAA #AA9B2A #39AA2A
monochromatic
#261248 #411E79 #5B2AAA #7841D0 #9B72DC

Accessibility & contrast

On white

8.91
#5B2AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5B2AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2AAA
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2AAA#FFFFFF#000000##FFFFFF
##5B2AAA1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAE
Deuteranopia (green-blind)
#0048A8
Tritanopia (blue-blind)
#444C68
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5b2aaa;
/* rgb */ color: rgb(91, 42, 170);
/* oklch */ color: oklch(43.0% 0.189 294.5);
Tailwind
colors: {
  custom: {
    50: '#9169c4',
    500: '#5b2aaa',
    950: '#000000',
  },
}
SCSS
$custom: #5b2aaa;
$custom-light: #9169c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2aaa",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 262.969,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43012,
    "c": 0.18919,
    "h": 294.5
  },
  "luminance": 0.06782
}

Semantic roles & 50–950 ramp

primary
#5B2AAA
secondary
#A2C36C
accent
#E444A7
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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