#4C32B7#4C32B7

#4C32B7 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.196 H 283.7°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#4C32B7
RGBrgb(76, 50, 183)
HSLhsl(252, 57%, 46%)
HSVhsv(252, 73%, 72%)
CMYKcmyk(58.5%, 72.7%, 0%, 28.2%)
CIE-LABlab(32.34, 47.04, -66.21)
CIE-LCHlch(32.34, 81.21, 305.39°)
OKLaboklab(43.73% 0.0465 -0.1907)
OKLCHoklch(43.73% 0.196 283.7)
XYZxyz(12.6657, 7.2358, 45.5198)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C32B7 #9DB732
analogous
#325AB7 #4C32B7 #8E32B7
triadic
#4C32B7 #B74C32 #32B74C
tetradic
#4C32B7 #B7325A #9DB732 #32B78E
square
#4C32B7 #B7325A #9DB732 #32B78E
split-complementary
#4C32B7 #B78E32 #5AB732
monochromatic
#241857 #382587 #4C32B7 #6E56D1 #9786DE

Accessibility & contrast

On white

8.58
#4C32B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#4C32B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C32B7
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C32B7#FFFFFF#000000##FFFFFF
##4C32B71.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BB
Deuteranopia (green-blind)
#0048B5
Tritanopia (blue-blind)
#0C5671
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4c32b7;
/* rgb */ color: rgb(76, 50, 183);
/* oklch */ color: oklch(43.7% 0.196 283.7);
Tailwind
colors: {
  custom: {
    50: '#8a6dce',
    500: '#4c32b7',
    950: '#000000',
  },
}
SCSS
$custom: #4c32b7;
$custom-light: #8a6dce;
$custom-dark: #000000;
JSON
{
  "hex": "#4c32b7",
  "rgb": {
    "r": 76,
    "g": 50,
    "b": 183
  },
  "hsl": {
    "h": 251.729,
    "s": 57.082,
    "l": 45.686
  },
  "oklch": {
    "l": 0.43733,
    "c": 0.19628,
    "h": 283.7
  },
  "luminance": 0.07237
}

Semantic roles & 50–950 ramp

primary
#4C32B7
secondary
#B9C77D
accent
#E047C2
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4C32B7

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

Preview Lab → · Contrast checker → · Palette generator →

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