#5A32AB#5A32AB

#5A32AB is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.0% C 0.181 H 292.5°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#5A32AB
RGBrgb(90, 50, 171)
HSLhsl(260, 55%, 43%)
HSVhsv(260, 71%, 67%)
CMYKcmyk(47.4%, 70.8%, 0%, 32.9%)
CIE-LABlab(32.69, 45.79, -58.43)
CIE-LCHlch(32.69, 74.23, 308.09°)
OKLaboklab(43.99% 0.0693 -0.1674)
OKLCHoklch(43.99% 0.181 292.5)
XYZxyz(12.7057, 7.3947, 39.2781)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A32AB #83AB32
analogous
#3246AB #5A32AB #9632AB
triadic
#5A32AB #AB5A32 #32AB5A
tetradic
#5A32AB #AB3246 #83AB32 #32AB96
square
#5A32AB #AB3246 #83AB32 #32AB96
split-complementary
#5A32AB #AB9632 #46AB32
monochromatic
#28164C #41247C #5A32AB #784FCB #9C7ED9

Accessibility & contrast

On white

8.47
#5A32AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5A32AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A32AB
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A32AB#FFFFFF#000000##FFFFFF
##5A32AB1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#004AA9
Tritanopia (blue-blind)
#41516B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5a32ab;
/* rgb */ color: rgb(90, 50, 171);
/* oklch */ color: oklch(44.0% 0.181 292.5);
Tailwind
colors: {
  custom: {
    50: '#906dc5',
    500: '#5a32ab',
    950: '#000000',
  },
}
SCSS
$custom: #5a32ab;
$custom-light: #906dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a32ab",
  "rgb": {
    "r": 90,
    "g": 50,
    "b": 171
  },
  "hsl": {
    "h": 259.835,
    "s": 54.751,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43992,
    "c": 0.1812,
    "h": 292.5
  },
  "luminance": 0.07395
}

Semantic roles & 50–950 ramp

primary
#5A32AB
secondary
#A9C277
accent
#DE4AAD
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5A32AB

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

Preview Lab → · Contrast checker → · Palette generator →

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