#5B2AA2#5B2AA2

#5B2AA2 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.3% C 0.180 H 296.4°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#5B2AA2
RGBrgb(91, 42, 162)
HSLhsl(265, 59%, 40%)
HSVhsv(265, 74%, 64%)
CMYKcmyk(43.8%, 74.1%, 0%, 36.5%)
CIE-LABlab(30.61, 47.54, -56.39)
CIE-LCHlch(30.61, 73.76, 310.13°)
OKLaboklab(42.31% 0.0802 -0.1614)
OKLCHoklch(42.31% 0.18 296.4)
XYZxyz(11.6622, 6.4885, 34.8134)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2AA2 #71A22A
analogous
#2A35A2 #5B2AA2 #972AA2
triadic
#5B2AA2 #A25B2A #2AA25B
tetradic
#5B2AA2 #A22A35 #71A22A #2AA297
square
#5B2AA2 #A22A35 #71A22A #2AA297
split-complementary
#5B2AA2 #A2972A #35A22A
monochromatic
#241141 #401D71 #5B2AA2 #773DCD #996DD9

Accessibility & contrast

On white

9.14
#5B2AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5B2AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2AA2
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2AA2#FFFFFF#000000##FFFFFF
##5B2AA21.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#484964
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b2aa2;
/* rgb */ color: rgb(91, 42, 162);
/* oklch */ color: oklch(42.3% 0.180 296.4);
Tailwind
colors: {
  custom: {
    50: '#9068be',
    500: '#5b2aa2',
    950: '#000000',
  },
}
SCSS
$custom: #5b2aa2;
$custom-light: #9068be;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2aa2",
  "rgb": {
    "r": 91,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 264.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.4231,
    "c": 0.18023,
    "h": 296.4
  },
  "luminance": 0.06489
}

Semantic roles & 50–950 ramp

primary
#5B2AA2
secondary
#9CC068
accent
#E246A2
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B2AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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