#4C2AA8#4C2AA8

#4C2AA8 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.187 H 287.5°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#4C2AA8
RGBrgb(76, 42, 168)
HSLhsl(256, 60%, 41%)
HSVhsv(256, 75%, 66%)
CMYKcmyk(54.8%, 75%, 0%, 34.1%)
CIE-LABlab(29.46, 46.78, -61.97)
CIE-LCHlch(29.46, 77.64, 307.05°)
OKLaboklab(41.27% 0.0562 -0.1782)
OKLCHoklch(41.27% 0.187 287.5)
XYZxyz(10.8742, 6.0190, 37.6270)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2AA8 #86A82A
analogous
#2A47A8 #4C2AA8 #8B2AA8
triadic
#4C2AA8 #A84C2A #2AA84C
tetradic
#4C2AA8 #A82A47 #86A82A #2AA88B
square
#4C2AA8 #A82A47 #86A82A #2AA88B
split-complementary
#4C2AA8 #A88B2A #47A82A
monochromatic
#201246 #361E77 #4C2AA8 #6740CF #8E71DB

Accessibility & contrast

On white

9.53
#4C2AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2AA8
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2AA8#FFFFFF#000000##FFFFFF
##4C2AA81.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AC
Deuteranopia (green-blind)
#0042A6
Tritanopia (blue-blind)
#264D67
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4c2aa8;
/* rgb */ color: rgb(76, 42, 168);
/* oklch */ color: oklch(41.3% 0.187 287.5);
Tailwind
colors: {
  custom: {
    50: '#8867c3',
    500: '#4c2aa8',
    950: '#000000',
  },
}
SCSS
$custom: #4c2aa8;
$custom-light: #8867c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2aa8",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 256.19,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41273,
    "c": 0.1869,
    "h": 287.5
  },
  "luminance": 0.0602
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C2AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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