#5B2AA8#5B2AA8

#5B2AA8 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.187 H 294.9°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#5B2AA8
RGBrgb(91, 42, 168)
HSLhsl(263, 60%, 41%)
HSVhsv(263, 75%, 66%)
CMYKcmyk(45.8%, 75%, 0%, 34.1%)
CIE-LABlab(31.13, 49.13, -59.17)
CIE-LCHlch(31.13, 76.91, 309.70°)
OKLaboklab(42.84% 0.0788 -0.1695)
OKLCHoklch(42.84% 0.187 294.9)
XYZxyz(12.2083, 6.7069, 37.6895)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2AA8 #77A82A
analogous
#2A38A8 #5B2AA8 #9A2AA8
triadic
#5B2AA8 #A85B2A #2AA85B
tetradic
#5B2AA8 #A82A38 #77A82A #2AA89A
square
#5B2AA8 #A82A38 #77A82A #2AA89A
split-complementary
#5B2AA8 #A89A2A #38A82A
monochromatic
#261246 #401E77 #5B2AA8 #7840CF #9A71DB

Accessibility & contrast

On white

8.97
#5B2AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5B2AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2AA8
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2AA8#FFFFFF#000000##FFFFFF
##5B2AA81.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#0047A6
Tritanopia (blue-blind)
#454B67
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b2aa8;
/* rgb */ color: rgb(91, 42, 168);
/* oklch */ color: oklch(42.8% 0.187 294.9);
Tailwind
colors: {
  custom: {
    50: '#9169c3',
    500: '#5b2aa8',
    950: '#000000',
  },
}
SCSS
$custom: #5b2aa8;
$custom-light: #9169c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2aa8",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 263.333,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42835,
    "c": 0.18695,
    "h": 294.9
  },
  "luminance": 0.06707
}

Semantic roles & 50–950 ramp

primary
#5B2AA8
secondary
#A1C36B
accent
#E345A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B2AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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