#4C2AA7#4C2AA7

#4C2AA7 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.186 H 287.7°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#4C2AA7
RGBrgb(76, 42, 167)
HSLhsl(256, 60%, 41%)
HSVhsv(256, 75%, 65%)
CMYKcmyk(54.5%, 74.9%, 0%, 34.5%)
CIE-LABlab(29.37, 46.49, -61.52)
CIE-LCHlch(29.37, 77.11, 307.08°)
OKLaboklab(41.18% 0.0565 -0.1769)
OKLCHoklch(41.18% 0.186 287.7)
XYZxyz(10.7814, 5.9819, 37.1382)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2AA7 #85A72A
analogous
#2A46A7 #4C2AA7 #8A2AA7
triadic
#4C2AA7 #A74C2A #2AA74C
tetradic
#4C2AA7 #A72A46 #85A72A #2AA78A
square
#4C2AA7 #A72A46 #85A72A #2AA78A
split-complementary
#4C2AA7 #A78A2A #46A72A
monochromatic
#1F1145 #361E76 #4C2AA7 #663FCF #8D70DB

Accessibility & contrast

On white

9.56
#4C2AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4C2AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2AA7
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2AA7#FFFFFF#000000##FFFFFF
##4C2AA71.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#0042A5
Tritanopia (blue-blind)
#274C66
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4c2aa7;
/* rgb */ color: rgb(76, 42, 167);
/* oklch */ color: oklch(41.2% 0.186 287.7);
Tailwind
colors: {
  custom: {
    50: '#8867c2',
    500: '#4c2aa7',
    950: '#000000',
  },
}
SCSS
$custom: #4c2aa7;
$custom-light: #8867c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2aa7",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 256.32,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41179,
    "c": 0.18573,
    "h": 287.7
  },
  "luminance": 0.05982
}

Semantic roles & 50–950 ramp

primary
#4C2AA7
secondary
#AAC26B
accent
#E345B8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4C2AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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