#4C32B2#4C32B2

#4C32B2 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.190 H 284.5°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#4C32B2
RGBrgb(76, 50, 178)
HSLhsl(252, 56%, 45%)
HSVhsv(252, 72%, 70%)
CMYKcmyk(57.3%, 71.9%, 0%, 30.2%)
CIE-LABlab(31.88, 45.53, -63.99)
CIE-LCHlch(31.88, 78.54, 305.43°)
OKLaboklab(43.27% 0.0475 -0.1842)
OKLCHoklch(43.27% 0.19 284.5)
XYZxyz(12.1545, 7.0313, 42.8276)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C32B2 #98B232
analogous
#3258B2 #4C32B2 #8C32B2
triadic
#4C32B2 #B24C32 #32B24C
tetradic
#4C32B2 #B23258 #98B232 #32B28C
square
#4C32B2 #B23258 #98B232 #32B28C
split-complementary
#4C32B2 #B28C32 #58B232
monochromatic
#231752 #382582 #4C32B2 #6C53CF #9582DC

Accessibility & contrast

On white

8.73
#4C32B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#4C32B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C32B2
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C32B2#FFFFFF#000000##FFFFFF
##4C32B21.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#17546F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4c32b2;
/* rgb */ color: rgb(76, 50, 178);
/* oklch */ color: oklch(43.3% 0.190 284.5);
Tailwind
colors: {
  custom: {
    50: '#896cca',
    500: '#4c32b2',
    950: '#000000',
  },
}
SCSS
$custom: #4c32b2;
$custom-light: #896cca;
$custom-dark: #000000;
JSON
{
  "hex": "#4c32b2",
  "rgb": {
    "r": 76,
    "g": 50,
    "b": 178
  },
  "hsl": {
    "h": 252.188,
    "s": 56.14,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43266,
    "c": 0.19025,
    "h": 284.5
  },
  "luminance": 0.07032
}

Semantic roles & 50–950 ramp

primary
#4C32B2
secondary
#B6C57B
accent
#DF48C1
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4C32B2

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

Preview Lab → · Contrast checker → · Palette generator →

#4C32B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva