#5A2AA4#5A2AA4

#5A2AA4 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.4% C 0.182 H 295.4°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#5A2AA4
RGBrgb(90, 42, 164)
HSLhsl(264, 59%, 40%)
HSVhsv(264, 74%, 64%)
CMYKcmyk(45.1%, 74.4%, 0%, 35.7%)
CIE-LABlab(30.66, 47.90, -57.52)
CIE-LCHlch(30.66, 74.85, 309.78°)
OKLaboklab(42.37% 0.0783 -0.1647)
OKLCHoklch(42.37% 0.182 295.4)
XYZxyz(11.7435, 6.5096, 35.7525)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2AA4 #74A42A
analogous
#2A37A4 #5A2AA4 #972AA4
triadic
#5A2AA4 #A45A2A #2AA45A
tetradic
#5A2AA4 #A42A37 #74A42A #2AA497
square
#5A2AA4 #A42A37 #74A42A #2AA497
split-complementary
#5A2AA4 #A4972A #37A42A
monochromatic
#251143 #3F1E73 #5A2AA4 #763ECD #996EDA

Accessibility & contrast

On white

9.12
#5A2AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2AA4
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2AA4#FFFFFF#000000##FFFFFF
##5A2AA41.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a2aa4;
/* rgb */ color: rgb(90, 42, 164);
/* oklch */ color: oklch(42.4% 0.182 295.4);
Tailwind
colors: {
  custom: {
    50: '#9068c0',
    500: '#5a2aa4',
    950: '#000000',
  },
}
SCSS
$custom: #5a2aa4;
$custom-light: #9068c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2aa4",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 263.607,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42372,
    "c": 0.18239,
    "h": 295.4
  },
  "luminance": 0.0651
}

Semantic roles & 50–950 ramp

primary
#5A2AA4
secondary
#9EC169
accent
#E245A5
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A2AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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