#5A2AA3#5A2AA3

#5A2AA3 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.3% C 0.181 H 295.7°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#5A2AA3
RGBrgb(90, 42, 163)
HSLhsl(264, 59%, 40%)
HSVhsv(264, 74%, 64%)
CMYKcmyk(44.8%, 74.2%, 0%, 36.1%)
CIE-LABlab(30.58, 47.63, -57.06)
CIE-LCHlch(30.58, 74.33, 309.85°)
OKLaboklab(42.29% 0.0785 -0.1634)
OKLCHoklch(42.29% 0.181 295.7)
XYZxyz(11.6535, 6.4737, 35.2788)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2AA3 #73A32A
analogous
#2A36A3 #5A2AA3 #972AA3
triadic
#5A2AA3 #A35A2A #2AA35A
tetradic
#5A2AA3 #A32A36 #73A32A #2AA397
square
#5A2AA3 #A32A36 #73A32A #2AA397
split-complementary
#5A2AA3 #A3972A #36A32A
monochromatic
#241142 #3F1D72 #5A2AA3 #763DCD #996EDA

Accessibility & contrast

On white

9.15
#5A2AA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2AA3
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2AA3#FFFFFF#000000##FFFFFF
##5A2AA31.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A6
Deuteranopia (green-blind)
#0046A1
Tritanopia (blue-blind)
#464A64
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a2aa3;
/* rgb */ color: rgb(90, 42, 163);
/* oklch */ color: oklch(42.3% 0.181 295.7);
Tailwind
colors: {
  custom: {
    50: '#9068bf',
    500: '#5a2aa3',
    950: '#000000',
  },
}
SCSS
$custom: #5a2aa3;
$custom-light: #9068bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2aa3",
  "rgb": {
    "r": 90,
    "g": 42,
    "b": 163
  },
  "hsl": {
    "h": 263.802,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42285,
    "c": 0.18127,
    "h": 295.7
  },
  "luminance": 0.06474
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A2AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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