#4C2AA5#4C2AA5

#4C2AA5 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.0% C 0.183 H 288.1°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#4C2AA5
RGBrgb(76, 42, 165)
HSLhsl(257, 59%, 41%)
HSVhsv(257, 75%, 65%)
CMYKcmyk(53.9%, 74.5%, 0%, 35.3%)
CIE-LABlab(29.18, 45.91, -60.62)
CIE-LCHlch(29.18, 76.04, 307.14°)
OKLaboklab(40.99% 0.057 -0.1743)
OKLCHoklch(40.99% 0.183 288.1)
XYZxyz(10.5980, 5.9085, 36.1720)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2AA5 #83A52A
analogous
#2A46A5 #4C2AA5 #892AA5
triadic
#4C2AA5 #A54C2A #2AA54C
tetradic
#4C2AA5 #A52A46 #83A52A #2AA589
square
#4C2AA5 #A52A46 #83A52A #2AA589
split-complementary
#4C2AA5 #A5892A #46A52A
monochromatic
#1F1143 #361E74 #4C2AA5 #663ECE #8D6FDA

Accessibility & contrast

On white

9.63
#4C2AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4C2AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2AA5
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2AA5#FFFFFF#000000##FFFFFF
##4C2AA51.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#0041A3
Tritanopia (blue-blind)
#294C65
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4c2aa5;
/* rgb */ color: rgb(76, 42, 165);
/* oklch */ color: oklch(41.0% 0.183 288.1);
Tailwind
colors: {
  custom: {
    50: '#8867c1',
    500: '#4c2aa5',
    950: '#000000',
  },
}
SCSS
$custom: #4c2aa5;
$custom-light: #8867c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2aa5",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 256.585,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4099,
    "c": 0.18337,
    "h": 288.1
  },
  "luminance": 0.05909
}

Semantic roles & 50–950 ramp

primary
#4C2AA5
secondary
#A9C169
accent
#E345B7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C2AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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