#4C2AA6#4C2AA6

#4C2AA6 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.185 H 287.9°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#4C2AA6
RGBrgb(76, 42, 166)
HSLhsl(256, 60%, 41%)
HSVhsv(256, 75%, 65%)
CMYKcmyk(54.2%, 74.7%, 0%, 34.9%)
CIE-LABlab(29.27, 46.20, -61.07)
CIE-LCHlch(29.27, 76.58, 307.11°)
OKLaboklab(41.08% 0.0567 -0.1756)
OKLCHoklch(41.08% 0.185 287.9)
XYZxyz(10.6894, 5.9451, 36.6533)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2AA6 #84A62A
analogous
#2A46A6 #4C2AA6 #8A2AA6
triadic
#4C2AA6 #A64C2A #2AA64C
tetradic
#4C2AA6 #A62A46 #84A62A #2AA68A
square
#4C2AA6 #A62A46 #84A62A #2AA68A
split-complementary
#4C2AA6 #A68A2A #46A62A
monochromatic
#1F1144 #361E75 #4C2AA6 #663FCE #8D70DB

Accessibility & contrast

On white

9.59
#4C2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4C2AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2AA6
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2AA6#FFFFFF#000000##FFFFFF
##4C2AA61.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#0042A4
Tritanopia (blue-blind)
#284C66
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4c2aa6;
/* rgb */ color: rgb(76, 42, 166);
/* oklch */ color: oklch(41.1% 0.185 287.9);
Tailwind
colors: {
  custom: {
    50: '#8867c1',
    500: '#4c2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #4c2aa6;
$custom-light: #8867c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2aa6",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 256.452,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41084,
    "c": 0.18455,
    "h": 287.9
  },
  "luminance": 0.05946
}

Semantic roles & 50–950 ramp

primary
#4C2AA6
secondary
#AAC26A
accent
#E345B8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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