#5A32CF#5A32CF

#5A32CF is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.2% C 0.223 H 285.9°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#5A32CF
RGBrgb(90, 50, 207)
HSLhsl(255, 62%, 50%)
HSVhsv(255, 76%, 81%)
CMYKcmyk(56.5%, 75.8%, 0%, 18.8%)
CIE-LABlab(35.91, 55.85, -74.36)
CIE-LCHlch(35.91, 93.00, 306.91°)
OKLaboklab(47.25% 0.0609 -0.2141)
OKLCHoklch(47.25% 0.223 285.9)
XYZxyz(16.6161, 8.9589, 59.8731)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A32CF #A7CF32
analogous
#3258CF #5A32CF #A932CF
triadic
#5A32CF #CF5A32 #32CF5A
tetradic
#5A32CF #CF3258 #A7CF32 #32CFA9
square
#5A32CF #CF3258 #A7CF32 #32CFA9
split-complementary
#5A32CF #CFA932 #58CF32
monochromatic
#2F1A6D #44259F #5A32CF #8264DB #AA95E6

Accessibility & contrast

On white

7.52
#5A32CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5A32CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A32CF
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A32CF#FFFFFF#000000##FFFFFF
##5A32CF1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D3
Deuteranopia (green-blind)
#0050CC
Tritanopia (blue-blind)
#205F7F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a32cf;
/* rgb */ color: rgb(90, 50, 207);
/* oklch */ color: oklch(47.2% 0.223 285.9);
Tailwind
colors: {
  custom: {
    50: '#956fdf',
    500: '#5a32cf',
    950: '#000000',
  },
}
SCSS
$custom: #5a32cf;
$custom-light: #956fdf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a32cf",
  "rgb": {
    "r": 90,
    "g": 50,
    "b": 207
  },
  "hsl": {
    "h": 255.287,
    "s": 62.055,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47246,
    "c": 0.22262,
    "h": 285.9
  },
  "luminance": 0.0896
}

Semantic roles & 50–950 ramp

primary
#5A32CF
secondary
#C0D18B
accent
#E543BC
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5A32CF

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

Preview Lab → · Contrast checker → · Palette generator →

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