#4C2AA1#4C2AA1

#4C2AA1 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.6% C 0.179 H 288.9°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#4C2AA1
RGBrgb(76, 42, 161)
HSLhsl(257, 59%, 40%)
HSVhsv(257, 74%, 63%)
CMYKcmyk(52.8%, 73.9%, 0%, 36.9%)
CIE-LABlab(28.81, 44.76, -58.80)
CIE-LCHlch(28.81, 73.90, 307.28°)
OKLaboklab(40.62% 0.0579 -0.169)
OKLCHoklch(40.62% 0.179 288.9)
XYZxyz(10.2396, 5.7652, 34.2846)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2AA1 #7FA12A
analogous
#2A43A1 #4C2AA1 #882AA1
triadic
#4C2AA1 #A14C2A #2AA14C
tetradic
#4C2AA1 #A12A43 #7FA12A #2AA188
square
#4C2AA1 #A12A43 #7FA12A #2AA188
split-complementary
#4C2AA1 #A1882A #43A12A
monochromatic
#1E1140 #351D70 #4C2AA1 #653CCC #8C6DD9

Accessibility & contrast

On white

9.75
#4C2AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2AA1
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2AA1#FFFFFF#000000##FFFFFF
##4C2AA11.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A4
Deuteranopia (green-blind)
#00419F
Tritanopia (blue-blind)
#2C4A63
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4c2aa1;
/* rgb */ color: rgb(76, 42, 161);
/* oklch */ color: oklch(40.6% 0.179 288.9);
Tailwind
colors: {
  custom: {
    50: '#8767be',
    500: '#4c2aa1',
    950: '#000000',
  },
}
SCSS
$custom: #4c2aa1;
$custom-light: #8767be;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2aa1",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 257.143,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40618,
    "c": 0.17862,
    "h": 288.9
  },
  "luminance": 0.05766
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C2AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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