#4C2AA2#4C2AA2

#4C2AA2 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.180 H 288.7°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#4C2AA2
RGBrgb(76, 42, 162)
HSLhsl(257, 59%, 40%)
HSVhsv(257, 74%, 64%)
CMYKcmyk(53.1%, 74.1%, 0%, 36.5%)
CIE-LABlab(28.90, 45.05, -59.26)
CIE-LCHlch(28.90, 74.44, 307.24°)
OKLaboklab(40.71% 0.0577 -0.1703)
OKLCHoklch(40.71% 0.18 288.7)
XYZxyz(10.3281, 5.8006, 34.7508)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2AA2 #80A22A
analogous
#2A44A2 #4C2AA2 #882AA2
triadic
#4C2AA2 #A24C2A #2AA24C
tetradic
#4C2AA2 #A22A44 #80A22A #2AA288
square
#4C2AA2 #A22A44 #80A22A #2AA288
split-complementary
#4C2AA2 #A2882A #44A22A
monochromatic
#1E1141 #351D71 #4C2AA2 #653DCD #8C6DD9

Accessibility & contrast

On white

9.72
#4C2AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4C2AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2AA2
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2AA2#FFFFFF#000000##FFFFFF
##4C2AA21.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#0041A0
Tritanopia (blue-blind)
#2B4A64
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4c2aa2;
/* rgb */ color: rgb(76, 42, 162);
/* oklch */ color: oklch(40.7% 0.180 288.7);
Tailwind
colors: {
  custom: {
    50: '#8767bf',
    500: '#4c2aa2',
    950: '#000000',
  },
}
SCSS
$custom: #4c2aa2;
$custom-light: #8767bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2aa2",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 257,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.4071,
    "c": 0.17982,
    "h": 288.7
  },
  "luminance": 0.05801
}

Semantic roles & 50–950 ramp

primary
#4C2AA2
secondary
#A7C068
accent
#E246B6
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C2AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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