#5A2AB6#5A2AB6

#5A2AB6 is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 44.0% C 0.202 H 291.3°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#5A2AB6
RGBrgb(90, 42, 182)
HSLhsl(261, 63%, 44%)
HSVhsv(261, 77%, 71%)
CMYKcmyk(50.5%, 76.9%, 0%, 28.6%)
CIE-LABlab(32.27, 52.71, -65.67)
CIE-LCHlch(32.27, 84.21, 308.75°)
OKLaboklab(44% 0.0736 -0.1886)
OKLCHoklch(44% 0.202 291.3)
XYZxyz(13.4855, 7.2065, 44.9273)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2AB6 #86B62A
analogous
#2A40B6 #5A2AB6 #A02AB6
triadic
#5A2AB6 #B65A2A #2AB65A
tetradic
#5A2AB6 #B62A40 #86B62A #2AB6A0
square
#5A2AB6 #B62A40 #86B62A #2AB6A0
split-complementary
#5A2AB6 #B6A02A #40B62A
monochromatic
#291353 #411F84 #5A2AB6 #7948D5 #9D7AE0

Accessibility & contrast

On white

8.60
#5A2AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5A2AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2AB6
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2AB6#FFFFFF#000000##FFFFFF
##5A2AB61.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBA
Deuteranopia (green-blind)
#0049B3
Tritanopia (blue-blind)
#3A516F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5a2ab6;
/* rgb */ color: rgb(90, 42, 182);
/* oklch */ color: oklch(44.0% 0.202 291.3);
Tailwind
colors: {
  custom: {
    50: '#9269cd',
    500: '#5a2ab6',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ab6;
$custom-light: #9269cd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ab6",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 260.571,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43995,
    "c": 0.20246,
    "h": 291.3
  },
  "luminance": 0.07207
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A2AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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