#5A2AA5#5A2AA5

#5A2AA5 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.5% C 0.184 H 295.2°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#5A2AA5
RGBrgb(90, 42, 165)
HSLhsl(263, 59%, 41%)
HSVhsv(263, 75%, 65%)
CMYKcmyk(45.5%, 74.5%, 0%, 35.3%)
CIE-LABlab(30.75, 48.16, -57.99)
CIE-LCHlch(30.75, 75.38, 309.71°)
OKLaboklab(42.46% 0.078 -0.1661)
OKLCHoklch(42.46% 0.184 295.2)
XYZxyz(11.8341, 6.5459, 36.2300)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2AA5 #75A52A
analogous
#2A37A5 #5A2AA5 #972AA5
triadic
#5A2AA5 #A55A2A #2AA55A
tetradic
#5A2AA5 #A52A37 #75A52A #2AA597
square
#5A2AA5 #A52A37 #75A52A #2AA597
split-complementary
#5A2AA5 #A5972A #37A52A
monochromatic
#251143 #3F1E74 #5A2AA5 #763ECE #996FDA

Accessibility & contrast

On white

9.09
#5A2AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5A2AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2AA5
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2AA5#FFFFFF#000000##FFFFFF
##5A2AA51.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A9
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#454A65
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a2aa5;
/* rgb */ color: rgb(90, 42, 165);
/* oklch */ color: oklch(42.5% 0.184 295.2);
Tailwind
colors: {
  custom: {
    50: '#9068c1',
    500: '#5a2aa5',
    950: '#000000',
  },
}
SCSS
$custom: #5a2aa5;
$custom-light: #9068c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2aa5",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 263.415,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4246,
    "c": 0.18352,
    "h": 295.2
  },
  "luminance": 0.06546
}

Semantic roles & 50–950 ramp

primary
#5A2AA5
secondary
#9FC169
accent
#E345A5
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A2AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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