#5C32B4#5C32B4

#5C32B4 is a dark, vivid violet. Relative luminance 0.079; OKLCH L 45.0% C 0.192 H 291.5°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#5C32B4
RGBrgb(92, 50, 180)
HSLhsl(259, 57%, 45%)
HSVhsv(259, 72%, 71%)
CMYKcmyk(48.9%, 72.2%, 0%, 29.4%)
CIE-LABlab(33.67, 48.63, -62.18)
CIE-LCHlch(33.67, 78.94, 308.03°)
OKLaboklab(44.98% 0.0704 -0.1784)
OKLCHoklch(44.98% 0.192 291.5)
XYZxyz(13.7901, 7.8513, 43.9600)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C32B4 #8AB432
analogous
#3249B4 #5C32B4 #9D32B4
triadic
#5C32B4 #B45C32 #32B45C
tetradic
#5C32B4 #B43249 #8AB432 #32B49D
square
#5C32B4 #B43249 #8AB432 #32B49D
split-complementary
#5C32B4 #B49D32 #49B432
monochromatic
#2B1754 #442584 #5C32B4 #7C54CF #A084DD

Accessibility & contrast

On white

8.17
#5C32B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5C32B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C32B4
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C32B4#FFFFFF#000000##FFFFFF
##5C32B41.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c32b4;
/* rgb */ color: rgb(92, 50, 180);
/* oklch */ color: oklch(45.0% 0.192 291.5);
Tailwind
colors: {
  custom: {
    50: '#926ecb',
    500: '#5c32b4',
    950: '#000000',
  },
}
SCSS
$custom: #5c32b4;
$custom-light: #926ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#5c32b4",
  "rgb": {
    "r": 92,
    "g": 50,
    "b": 180
  },
  "hsl": {
    "h": 259.385,
    "s": 56.522,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44977,
    "c": 0.19177,
    "h": 291.5
  },
  "luminance": 0.07852
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5C32B4

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

Preview Lab → · Contrast checker → · Palette generator →

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