#5A32A2#5A32A2

#5A32A2 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.2% C 0.170 H 294.6°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#5A32A2
RGBrgb(90, 50, 162)
HSLhsl(261, 53%, 42%)
HSVhsv(261, 69%, 64%)
CMYKcmyk(44.4%, 69.1%, 0%, 36.5%)
CIE-LABlab(31.95, 43.29, -54.22)
CIE-LCHlch(31.95, 69.38, 308.61°)
OKLaboklab(43.24% 0.0709 -0.1551)
OKLCHoklch(43.24% 0.17 294.6)
XYZxyz(11.8769, 7.0632, 34.9130)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A32A2 #7AA232
analogous
#3242A2 #5A32A2 #9232A2
triadic
#5A32A2 #A25A32 #32A25A
tetradic
#5A32A2 #A23242 #7AA232 #32A292
square
#5A32A2 #A23242 #7AA232 #32A292
split-complementary
#5A32A2 #A29232 #42A232
monochromatic
#261544 #402473 #5A32A2 #774AC7 #9A79D6

Accessibility & contrast

On white

8.70
#5A32A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5A32A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A32A2
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A32A2#FFFFFF#000000##FFFFFF
##5A32A21.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#0049A0
Tritanopia (blue-blind)
#464D66
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a32a2;
/* rgb */ color: rgb(90, 50, 162);
/* oklch */ color: oklch(43.2% 0.170 294.6);
Tailwind
colors: {
  custom: {
    50: '#8f6dbe',
    500: '#5a32a2',
    950: '#000000',
  },
}
SCSS
$custom: #5a32a2;
$custom-light: #8f6dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5a32a2",
  "rgb": {
    "r": 90,
    "g": 50,
    "b": 162
  },
  "hsl": {
    "h": 261.429,
    "s": 52.83,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43235,
    "c": 0.17049,
    "h": 294.6
  },
  "luminance": 0.07063
}

Semantic roles & 50–950 ramp

primary
#5A32A2
secondary
#A3BE72
accent
#DC4CA9
background
#F9F6FB
surface
#F1ECF7
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A32A2

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

Preview Lab → · Contrast checker → · Palette generator →

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