#5A32C2#5A32C2

#5A32C2 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.0% C 0.208 H 288.0°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#5A32C2
RGBrgb(90, 50, 194)
HSLhsl(257, 59%, 48%)
HSVhsv(257, 74%, 76%)
CMYKcmyk(53.6%, 74.2%, 0%, 23.9%)
CIE-LABlab(34.70, 52.22, -68.76)
CIE-LCHlch(34.70, 86.34, 307.21°)
OKLaboklab(46.03% 0.0642 -0.1977)
OKLCHoklch(46.03% 0.208 288)
XYZxyz(15.0918, 8.3491, 51.8448)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A32C2 #9AC232
analogous
#3252C2 #5A32C2 #A232C2
triadic
#5A32C2 #C25A32 #32C25A
tetradic
#5A32C2 #C23252 #9AC232 #32C2A2
square
#5A32C2 #C23252 #9AC232 #32C2A2
split-complementary
#5A32C2 #C2A232 #52C232
monochromatic
#2D1961 #432591 #5A32C2 #7E5CD5 #A48DE2

Accessibility & contrast

On white

7.87
#5A32C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5A32C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A32C2
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A32C2#FFFFFF#000000##FFFFFF
##5A32C21.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C6
Deuteranopia (green-blind)
#004EBF
Tritanopia (blue-blind)
#305A78
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a32c2;
/* rgb */ color: rgb(90, 50, 194);
/* oklch */ color: oklch(46.0% 0.208 288.0);
Tailwind
colors: {
  custom: {
    50: '#936ed6',
    500: '#5a32c2',
    950: '#000000',
  },
}
SCSS
$custom: #5a32c2;
$custom-light: #936ed6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a32c2",
  "rgb": {
    "r": 90,
    "g": 50,
    "b": 194
  },
  "hsl": {
    "h": 256.667,
    "s": 59.016,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46034,
    "c": 0.20792,
    "h": 288
  },
  "luminance": 0.0835
}

Semantic roles & 50–950 ramp

primary
#5A32C2
secondary
#B8CC84
accent
#E246B7
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A32C2

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

Preview Lab → · Contrast checker → · Palette generator →

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