#4C2AA4#4C2AA4

#4C2AA4 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.182 H 288.3°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#4C2AA4
RGBrgb(76, 42, 164)
HSLhsl(257, 59%, 40%)
HSVhsv(257, 74%, 64%)
CMYKcmyk(53.7%, 74.4%, 0%, 35.7%)
CIE-LABlab(29.09, 45.62, -60.17)
CIE-LCHlch(29.09, 75.51, 307.17°)
OKLaboklab(40.9% 0.0572 -0.173)
OKLCHoklch(40.9% 0.182 288.3)
XYZxyz(10.5073, 5.8723, 35.6946)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2AA4 #82A42A
analogous
#2A45A4 #4C2AA4 #892AA4
triadic
#4C2AA4 #A44C2A #2AA44C
tetradic
#4C2AA4 #A42A45 #82A42A #2AA489
square
#4C2AA4 #A42A45 #82A42A #2AA489
split-complementary
#4C2AA4 #A4892A #45A42A
monochromatic
#1F1143 #351E73 #4C2AA4 #663ECD #8C6EDA

Accessibility & contrast

On white

9.66
#4C2AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4C2AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2AA4
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2AA4#FFFFFF#000000##FFFFFF
##4C2AA41.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A8
Deuteranopia (green-blind)
#0041A2
Tritanopia (blue-blind)
#294B65
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4c2aa4;
/* rgb */ color: rgb(76, 42, 164);
/* oklch */ color: oklch(40.9% 0.182 288.3);
Tailwind
colors: {
  custom: {
    50: '#8767c0',
    500: '#4c2aa4',
    950: '#000000',
  },
}
SCSS
$custom: #4c2aa4;
$custom-light: #8767c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2aa4",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 256.721,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40897,
    "c": 0.18218,
    "h": 288.3
  },
  "luminance": 0.05873
}

Semantic roles & 50–950 ramp

primary
#4C2AA4
secondary
#A8C169
accent
#E245B7
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C2AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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