#4C32B8#4C32B8

#4C32B8 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.8% C 0.197 H 283.5°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#4C32B8
RGBrgb(76, 50, 184)
HSLhsl(252, 57%, 46%)
HSVhsv(252, 73%, 72%)
CMYKcmyk(58.7%, 72.8%, 0%, 27.8%)
CIE-LABlab(32.43, 47.34, -66.65)
CIE-LCHlch(32.43, 81.75, 305.38°)
OKLaboklab(43.83% 0.0463 -0.192)
OKLCHoklch(43.83% 0.197 283.5)
XYZxyz(12.7702, 7.2776, 46.0699)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C32B8 #9EB832
analogous
#325BB8 #4C32B8 #8F32B8
triadic
#4C32B8 #B84C32 #32B84C
tetradic
#4C32B8 #B8325B #9EB832 #32B88F
square
#4C32B8 #B8325B #9EB832 #32B88F
split-complementary
#4C32B8 #B88F32 #5BB832
monochromatic
#241858 #382588 #4C32B8 #6E56D1 #9786DE

Accessibility & contrast

On white

8.55
#4C32B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#4C32B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C32B8
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C32B8#FFFFFF#000000##FFFFFF
##4C32B81.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BC
Deuteranopia (green-blind)
#0048B5
Tritanopia (blue-blind)
#095772
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4c32b8;
/* rgb */ color: rgb(76, 50, 184);
/* oklch */ color: oklch(43.8% 0.197 283.5);
Tailwind
colors: {
  custom: {
    50: '#8a6dce',
    500: '#4c32b8',
    950: '#000000',
  },
}
SCSS
$custom: #4c32b8;
$custom-light: #8a6dce;
$custom-dark: #000000;
JSON
{
  "hex": "#4c32b8",
  "rgb": {
    "r": 76,
    "g": 50,
    "b": 184
  },
  "hsl": {
    "h": 251.642,
    "s": 57.265,
    "l": 45.882
  },
  "oklch": {
    "l": 0.43827,
    "c": 0.19748,
    "h": 283.5
  },
  "luminance": 0.07278
}

Semantic roles & 50–950 ramp

primary
#4C32B8
secondary
#B9C87E
accent
#E147C3
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4C32B8

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

Preview Lab → · Contrast checker → · Palette generator →

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