#5B2AA9#5B2AA9

#5B2AA9 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.9% C 0.188 H 294.7°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#5B2AA9
RGBrgb(91, 42, 169)
HSLhsl(263, 60%, 41%)
HSVhsv(263, 75%, 66%)
CMYKcmyk(46.2%, 75.1%, 0%, 33.7%)
CIE-LABlab(31.22, 49.39, -59.63)
CIE-LCHlch(31.22, 77.43, 309.64°)
OKLaboklab(42.92% 0.0786 -0.1709)
OKLCHoklch(42.92% 0.188 294.7)
XYZxyz(12.3018, 6.7443, 38.1820)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2AA9 #78A92A
analogous
#2A38A9 #5B2AA9 #9B2AA9
triadic
#5B2AA9 #A95B2A #2AA95B
tetradic
#5B2AA9 #A92A38 #78A92A #2AA99B
square
#5B2AA9 #A92A38 #78A92A #2AA99B
split-complementary
#5B2AA9 #A99B2A #38A92A
monochromatic
#261247 #411E78 #5B2AA9 #7841D0 #9B72DC

Accessibility & contrast

On white

8.94
#5B2AA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5B2AA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2AA9
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2AA9#FFFFFF#000000##FFFFFF
##5B2AA91.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAD
Deuteranopia (green-blind)
#0047A7
Tritanopia (blue-blind)
#444C68
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b2aa9;
/* rgb */ color: rgb(91, 42, 169);
/* oklch */ color: oklch(42.9% 0.188 294.7);
Tailwind
colors: {
  custom: {
    50: '#9169c4',
    500: '#5b2aa9',
    950: '#000000',
  },
}
SCSS
$custom: #5b2aa9;
$custom-light: #9169c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2aa9",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 169
  },
  "hsl": {
    "h": 263.15,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42924,
    "c": 0.18806,
    "h": 294.7
  },
  "luminance": 0.06745
}

Semantic roles & 50–950 ramp

primary
#5B2AA9
secondary
#A1C36C
accent
#E344A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B2AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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