#5C32B5#5C32B5

#5C32B5 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.1% C 0.193 H 291.3°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#5C32B5
RGBrgb(92, 50, 181)
HSLhsl(259, 57%, 45%)
HSVhsv(259, 72%, 71%)
CMYKcmyk(49.2%, 72.4%, 0%, 29%)
CIE-LABlab(33.76, 48.91, -62.63)
CIE-LCHlch(33.76, 79.47, 307.99°)
OKLaboklab(45.06% 0.0702 -0.1797)
OKLCHoklch(45.06% 0.193 291.3)
XYZxyz(13.8924, 7.8922, 44.4985)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C32B5 #8BB532
analogous
#3249B5 #5C32B5 #9E32B5
triadic
#5C32B5 #B55C32 #32B55C
tetradic
#5C32B5 #B53249 #8BB532 #32B59E
square
#5C32B5 #B53249 #8BB532 #32B59E
split-complementary
#5C32B5 #B59E32 #49B532
monochromatic
#2B1855 #442585 #5C32B5 #7C54D0 #A184DD

Accessibility & contrast

On white

8.14
#5C32B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5C32B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C32B5
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C32B5#FFFFFF#000000##FFFFFF
##5C32B51.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B9
Deuteranopia (green-blind)
#004DB2
Tritanopia (blue-blind)
#3F5470
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5c32b5;
/* rgb */ color: rgb(92, 50, 181);
/* oklch */ color: oklch(45.1% 0.193 291.3);
Tailwind
colors: {
  custom: {
    50: '#936ecc',
    500: '#5c32b5',
    950: '#000000',
  },
}
SCSS
$custom: #5c32b5;
$custom-light: #936ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#5c32b5",
  "rgb": {
    "r": 92,
    "g": 50,
    "b": 181
  },
  "hsl": {
    "h": 259.237,
    "s": 56.71,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45064,
    "c": 0.19293,
    "h": 291.3
  },
  "luminance": 0.07893
}

Semantic roles & 50–950 ramp

primary
#5C32B5
secondary
#AFC77C
accent
#E048AF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5C32B5

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

Preview Lab → · Contrast checker → · Palette generator →

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