#5A32A3#5A32A3

#5A32A3 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.3% C 0.172 H 294.3°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#5A32A3
RGBrgb(90, 50, 163)
HSLhsl(261, 53%, 42%)
HSVhsv(261, 69%, 64%)
CMYKcmyk(44.8%, 69.3%, 0%, 36.1%)
CIE-LABlab(32.03, 43.57, -54.69)
CIE-LCHlch(32.03, 69.92, 308.54°)
OKLaboklab(43.32% 0.0707 -0.1564)
OKLCHoklch(43.32% 0.172 294.3)
XYZxyz(11.9661, 7.0989, 35.3830)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A32A3 #7BA332
analogous
#3243A3 #5A32A3 #9332A3
triadic
#5A32A3 #A35A32 #32A35A
tetradic
#5A32A3 #A33243 #7BA332 #32A393
square
#5A32A3 #A33243 #7BA332 #32A393
split-complementary
#5A32A3 #A39332 #43A332
monochromatic
#261545 #402474 #5A32A3 #774BC8 #9A79D6

Accessibility & contrast

On white

8.68
#5A32A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5A32A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A32A3
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A32A3#FFFFFF#000000##FFFFFF
##5A32A31.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA6
Deuteranopia (green-blind)
#0049A1
Tritanopia (blue-blind)
#464E66
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a32a3;
/* rgb */ color: rgb(90, 50, 163);
/* oklch */ color: oklch(43.3% 0.172 294.3);
Tailwind
colors: {
  custom: {
    50: '#8f6dbf',
    500: '#5a32a3',
    950: '#000000',
  },
}
SCSS
$custom: #5a32a3;
$custom-light: #8f6dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a32a3",
  "rgb": {
    "r": 90,
    "g": 50,
    "b": 163
  },
  "hsl": {
    "h": 261.239,
    "s": 53.052,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43318,
    "c": 0.17169,
    "h": 294.3
  },
  "luminance": 0.07099
}

Semantic roles & 50–950 ramp

primary
#5A32A3
secondary
#A4BF72
accent
#DC4BA9
background
#F9F6FB
surface
#F1ECF7
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A32A3

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

Preview Lab → · Contrast checker → · Palette generator →

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