#4C2AA0#4C2AA0

#4C2AA0 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.177 H 289.1°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#4C2AA0
RGBrgb(76, 42, 160)
HSLhsl(257, 58%, 40%)
HSVhsv(257, 74%, 63%)
CMYKcmyk(52.5%, 73.8%, 0%, 37.3%)
CIE-LABlab(28.72, 44.47, -58.34)
CIE-LCHlch(28.72, 73.36, 307.31°)
OKLaboklab(40.53% 0.0582 -0.1676)
OKLCHoklch(40.53% 0.177 289.1)
XYZxyz(10.1518, 5.7300, 33.8220)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2AA0 #7EA02A
analogous
#2A43A0 #4C2AA0 #872AA0
triadic
#4C2AA0 #A04C2A #2AA04C
tetradic
#4C2AA0 #A02A43 #7EA02A #2AA087
square
#4C2AA0 #A02A43 #7EA02A #2AA087
split-complementary
#4C2AA0 #A0872A #43A02A
monochromatic
#1E113F #351D70 #4C2AA0 #653CCC #8B6CD8

Accessibility & contrast

On white

9.79
#4C2AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4C2AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2AA0
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2AA0#FFFFFF#000000##FFFFFF
##4C2AA01.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A3
Deuteranopia (green-blind)
#00419E
Tritanopia (blue-blind)
#2D4A62
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4c2aa0;
/* rgb */ color: rgb(76, 42, 160);
/* oklch */ color: oklch(40.5% 0.177 289.1);
Tailwind
colors: {
  custom: {
    50: '#8767bd',
    500: '#4c2aa0',
    950: '#000000',
  },
}
SCSS
$custom: #4c2aa0;
$custom-light: #8767bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2aa0",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 160
  },
  "hsl": {
    "h": 257.288,
    "s": 58.416,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40525,
    "c": 0.17743,
    "h": 289.1
  },
  "luminance": 0.0573
}

Semantic roles & 50–950 ramp

primary
#4C2AA0
secondary
#A6BF67
accent
#E246B5
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C2AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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