#5A2DA2#5A2DA2

#5A2DA2 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.177 H 295.4°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#5A2DA2
RGBrgb(90, 45, 162)
HSLhsl(263, 57%, 41%)
HSVhsv(263, 72%, 64%)
CMYKcmyk(44.4%, 72.2%, 0%, 36.5%)
CIE-LABlab(31.02, 45.89, -55.74)
CIE-LCHlch(31.02, 72.20, 309.46°)
OKLaboklab(42.57% 0.0759 -0.1595)
OKLCHoklch(42.57% 0.177 295.4)
XYZxyz(11.6747, 6.6588, 34.8456)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2DA2 #75A22D
analogous
#2D3AA2 #5A2DA2 #942DA2
triadic
#5A2DA2 #A25A2D #2DA25A
tetradic
#5A2DA2 #A22D3A #75A22D #2DA294
square
#5A2DA2 #A22D3A #75A22D #2DA294
split-complementary
#5A2DA2 #A2942D #3AA22D
monochromatic
#251242 #3F2072 #5A2DA2 #7642CA #9972D8

Accessibility & contrast

On white

9.01
#5A2DA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5A2DA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2DA2
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2DA2#FFFFFF#000000##FFFFFF
##5A2DA21.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#0047A0
Tritanopia (blue-blind)
#464B64
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a2da2;
/* rgb */ color: rgb(90, 45, 162);
/* oklch */ color: oklch(42.6% 0.177 295.4);
Tailwind
colors: {
  custom: {
    50: '#8f6abe',
    500: '#5a2da2',
    950: '#000000',
  },
}
SCSS
$custom: #5a2da2;
$custom-light: #8f6abe;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2da2",
  "rgb": {
    "r": 90,
    "g": 45,
    "b": 162
  },
  "hsl": {
    "h": 263.077,
    "s": 56.522,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4257,
    "c": 0.17665,
    "h": 295.4
  },
  "luminance": 0.06659
}

Semantic roles & 50–950 ramp

primary
#5A2DA2
secondary
#9FBF6C
accent
#E048A5
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A2DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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