#5A2AA2#5A2AA2

#5A2AA2 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.180 H 295.9°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#5A2AA2
RGBrgb(90, 42, 162)
HSLhsl(264, 59%, 40%)
HSVhsv(264, 74%, 64%)
CMYKcmyk(44.4%, 74.1%, 0%, 36.5%)
CIE-LABlab(30.49, 47.36, -56.60)
CIE-LCHlch(30.49, 73.80, 309.93°)
OKLaboklab(42.2% 0.0788 -0.162)
OKLCHoklch(42.2% 0.18 295.9)
XYZxyz(11.5643, 6.4380, 34.8088)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2AA2 #72A22A
analogous
#2A36A2 #5A2AA2 #962AA2
triadic
#5A2AA2 #A25A2A #2AA25A
tetradic
#5A2AA2 #A22A36 #72A22A #2AA296
square
#5A2AA2 #A22A36 #72A22A #2AA296
split-complementary
#5A2AA2 #A2962A #36A22A
monochromatic
#241141 #3F1D71 #5A2AA2 #763DCD #986DD9

Accessibility & contrast

On white

9.18
#5A2AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5A2AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2AA2
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2AA2#FFFFFF#000000##FFFFFF
##5A2AA21.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a2aa2;
/* rgb */ color: rgb(90, 42, 162);
/* oklch */ color: oklch(42.2% 0.180 295.9);
Tailwind
colors: {
  custom: {
    50: '#8f68be',
    500: '#5a2aa2',
    950: '#000000',
  },
}
SCSS
$custom: #5a2aa2;
$custom-light: #8f68be;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2aa2",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 264,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.42198,
    "c": 0.18014,
    "h": 295.9
  },
  "luminance": 0.06438
}

Semantic roles & 50–950 ramp

primary
#5A2AA2
secondary
#9DC068
accent
#E246A4
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A2AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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