#5A2AB5#5A2AB5

#5A2AB5 is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 43.9% C 0.201 H 291.5°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#5A2AB5
RGBrgb(90, 42, 181)
HSLhsl(261, 62%, 44%)
HSVhsv(261, 77%, 71%)
CMYKcmyk(50.3%, 76.8%, 0%, 29%)
CIE-LABlab(32.18, 52.44, -65.22)
CIE-LCHlch(32.18, 83.69, 308.80°)
OKLaboklab(43.9% 0.0739 -0.1873)
OKLCHoklch(43.9% 0.201 291.5)
XYZxyz(13.3825, 7.1653, 44.3850)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2AB5 #85B52A
analogous
#2A40B5 #5A2AB5 #9F2AB5
triadic
#5A2AB5 #B55A2A #2AB55A
tetradic
#5A2AB5 #B52A40 #85B52A #2AB59F
square
#5A2AB5 #B52A40 #85B52A #2AB59F
split-complementary
#5A2AB5 #B59F2A #40B52A
monochromatic
#291352 #411E83 #5A2AB5 #7848D4 #9D79E0

Accessibility & contrast

On white

8.63
#5A2AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5A2AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2AB5
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2AB5#FFFFFF#000000##FFFFFF
##5A2AB51.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB9
Deuteranopia (green-blind)
#0049B2
Tritanopia (blue-blind)
#3B516E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5a2ab5;
/* rgb */ color: rgb(90, 42, 181);
/* oklch */ color: oklch(43.9% 0.201 291.5);
Tailwind
colors: {
  custom: {
    50: '#9269cc',
    500: '#5a2ab5',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ab5;
$custom-light: #9269cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ab5",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 260.719,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43903,
    "c": 0.20136,
    "h": 291.5
  },
  "luminance": 0.07166
}

Semantic roles & 50–950 ramp

primary
#5A2AB5
secondary
#ABC873
accent
#E542AD
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5A2AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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