#4C2AAC#4C2AAC

#4C2AAC is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.192 H 286.7°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#4C2AAC
RGBrgb(76, 42, 172)
HSLhsl(256, 61%, 42%)
HSVhsv(256, 76%, 67%)
CMYKcmyk(55.8%, 75.6%, 0%, 32.5%)
CIE-LABlab(29.84, 47.93, -63.75)
CIE-LCHlch(29.84, 79.76, 306.94°)
OKLaboklab(41.65% 0.0552 -0.1835)
OKLCHoklch(41.65% 0.192 286.7)
XYZxyz(11.2526, 6.1704, 39.6198)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2AAC #8AAC2A
analogous
#2A49AC #4C2AAC #8D2AAC
triadic
#4C2AAC #AC4C2A #2AAC4C
tetradic
#4C2AAC #AC2A49 #8AAC2A #2AAC8D
square
#4C2AAC #AC2A49 #8AAC2A #2AAC8D
split-complementary
#4C2AAC #AC8D2A #49AC2A
monochromatic
#21124A #361E7B #4C2AAC #6842D1 #8F73DD

Accessibility & contrast

On white

9.40
#4C2AAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4C2AAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2AAC
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2AAC#FFFFFF#000000##FFFFFF
##4C2AAC1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B0
Deuteranopia (green-blind)
#0043AA
Tritanopia (blue-blind)
#214E69
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4c2aac;
/* rgb */ color: rgb(76, 42, 172);
/* oklch */ color: oklch(41.7% 0.192 286.7);
Tailwind
colors: {
  custom: {
    50: '#8968c6',
    500: '#4c2aac',
    950: '#000000',
  },
}
SCSS
$custom: #4c2aac;
$custom-light: #8968c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2aac",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 172
  },
  "hsl": {
    "h": 255.692,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41654,
    "c": 0.19159,
    "h": 286.7
  },
  "luminance": 0.06171
}

Semantic roles & 50–950 ramp

primary
#4C2AAC
secondary
#AEC46D
accent
#E444BA
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4C2AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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