#5A32C9#5A32C9

#5A32C9 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.7% C 0.216 H 286.8°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#5A32C9
RGBrgb(90, 50, 201)
HSLhsl(256, 60%, 49%)
HSVhsv(256, 75%, 79%)
CMYKcmyk(55.2%, 75.1%, 0%, 21.2%)
CIE-LABlab(35.34, 54.17, -71.80)
CIE-LCHlch(35.34, 89.94, 307.04°)
OKLaboklab(46.68% 0.0625 -0.2066)
OKLCHoklch(46.68% 0.216 286.8)
XYZxyz(15.8965, 8.6710, 56.0831)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A32C9 #A1C932
analogous
#3256C9 #5A32C9 #A632C9
triadic
#5A32C9 #C95A32 #32C95A
tetradic
#5A32C9 #C93256 #A1C932 #32C9A6
square
#5A32C9 #C93256 #A1C932 #32C9A6
split-complementary
#5A32C9 #C9A632 #56C932
monochromatic
#2E1A67 #442698 #5A32C9 #8061D8 #A792E4

Accessibility & contrast

On white

7.68
#5A32C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5A32C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A32C9
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A32C9#FFFFFF#000000##FFFFFF
##5A32C91.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CD
Deuteranopia (green-blind)
#004FC6
Tritanopia (blue-blind)
#285C7C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a32c9;
/* rgb */ color: rgb(90, 50, 201);
/* oklch */ color: oklch(46.7% 0.216 286.8);
Tailwind
colors: {
  custom: {
    50: '#946edb',
    500: '#5a32c9',
    950: '#000000',
  },
}
SCSS
$custom: #5a32c9;
$custom-light: #946edb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a32c9",
  "rgb": {
    "r": 90,
    "g": 50,
    "b": 201
  },
  "hsl": {
    "h": 255.894,
    "s": 60.159,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46682,
    "c": 0.21586,
    "h": 286.8
  },
  "luminance": 0.08672
}

Semantic roles & 50–950 ramp

primary
#5A32C9
secondary
#BCCF88
accent
#E344B9
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5A32C9

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

Preview Lab → · Contrast checker → · Palette generator →

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