#5A32AF#5A32AF

#5A32AF is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.3% C 0.186 H 291.6°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#5A32AF
RGBrgb(90, 50, 175)
HSLhsl(259, 56%, 44%)
HSVhsv(259, 71%, 69%)
CMYKcmyk(48.6%, 71.4%, 0%, 31.4%)
CIE-LABlab(33.03, 46.91, -60.27)
CIE-LCHlch(33.03, 76.37, 307.89°)
OKLaboklab(44.34% 0.0685 -0.1728)
OKLCHoklch(44.34% 0.186 291.6)
XYZxyz(13.0927, 7.5495, 41.3165)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A32AF #87AF32
analogous
#3249AF #5A32AF #9932AF
triadic
#5A32AF #AF5A32 #32AF5A
tetradic
#5A32AF #AF3249 #87AF32 #32AF99
square
#5A32AF #AF3249 #87AF32 #32AF99
split-complementary
#5A32AF #AF9932 #49AF32
monochromatic
#291750 #42247F #5A32AF #7951CD #9D81DB

Accessibility & contrast

On white

8.37
#5A32AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5A32AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A32AF
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A32AF#FFFFFF#000000##FFFFFF
##5A32AF1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#004BAD
Tritanopia (blue-blind)
#3F526D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5a32af;
/* rgb */ color: rgb(90, 50, 175);
/* oklch */ color: oklch(44.3% 0.186 291.6);
Tailwind
colors: {
  custom: {
    50: '#916dc8',
    500: '#5a32af',
    950: '#000000',
  },
}
SCSS
$custom: #5a32af;
$custom-light: #916dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a32af",
  "rgb": {
    "r": 90,
    "g": 50,
    "b": 175
  },
  "hsl": {
    "h": 259.2,
    "s": 55.556,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44337,
    "c": 0.18591,
    "h": 291.6
  },
  "luminance": 0.0755
}

Semantic roles & 50–950 ramp

primary
#5A32AF
secondary
#ACC479
accent
#DF49AF
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A32AF

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

Preview Lab → · Contrast checker → · Palette generator →

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