#5A32BC#5A32BC

#5A32BC is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.5% C 0.201 H 289.1°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#5A32BC
RGBrgb(90, 50, 188)
HSLhsl(257, 58%, 47%)
HSVhsv(257, 73%, 74%)
CMYKcmyk(52.1%, 73.4%, 0%, 26.3%)
CIE-LABlab(34.16, 50.54, -66.12)
CIE-LCHlch(34.16, 83.22, 307.39°)
OKLaboklab(45.49% 0.0657 -0.19)
OKLCHoklch(45.49% 0.201 289.1)
XYZxyz(14.4315, 8.0850, 48.3674)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A32BC #94BC32
analogous
#324FBC #5A32BC #9F32BC
triadic
#5A32BC #BC5A32 #32BC5A
tetradic
#5A32BC #BC324F #94BC32 #32BC9F
square
#5A32BC #BC324F #94BC32 #32BC9F
split-complementary
#5A32BC #BC9F32 #4FBC32
monochromatic
#2C185B #43258C #5A32BC #7C58D3 #A289E0

Accessibility & contrast

On white

8.02
#5A32BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5A32BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A32BC
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A32BC#FFFFFF#000000##FFFFFF
##5A32BC1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C0
Deuteranopia (green-blind)
#004DB9
Tritanopia (blue-blind)
#355774
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a32bc;
/* rgb */ color: rgb(90, 50, 188);
/* oklch */ color: oklch(45.5% 0.201 289.1);
Tailwind
colors: {
  custom: {
    50: '#926ed1',
    500: '#5a32bc',
    950: '#000000',
  },
}
SCSS
$custom: #5a32bc;
$custom-light: #926ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a32bc",
  "rgb": {
    "r": 90,
    "g": 50,
    "b": 188
  },
  "hsl": {
    "h": 257.391,
    "s": 57.983,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45488,
    "c": 0.20103,
    "h": 289.1
  },
  "luminance": 0.08086
}

Semantic roles & 50–950 ramp

primary
#5A32BC
secondary
#B4C980
accent
#E147B4
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A32BC

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

Preview Lab → · Contrast checker → · Palette generator →

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