#4C0D4A#4C0D4A

#4C0D4A is a dark, moderate purple. Relative luminance 0.023; OKLCH L 30.1% C 0.119 H 329.5°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#4C0D4A
RGBrgb(76, 13, 74)
HSLhsl(302, 71%, 17%)
HSVhsv(302, 83%, 30%)
CMYKcmyk(0%, 82.9%, 2.6%, 70.2%)
CIE-LABlab(17.08, 36.41, -21.91)
CIE-LCHlch(17.08, 42.49, 328.96°)
OKLaboklab(30.1% 0.1027 -0.0606)
OKLCHoklch(30.1% 0.119 329.5)
XYZxyz(4.3604, 2.3191, 6.6952)
Luminance0.0232 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0D4A #0D4C0F
analogous
#2F0D4C #4C0D4A #4C0D2A
triadic
#4C0D4A #4A4C0D #0D4A4C
tetradic
#4C0D4A #4C2F0D #0D4C0F #0D2A4C
square
#4C0D4A #4C2F0D #0D4C0F #0D2A4C
split-complementary
#4C0D4A #2A4C0D #0D4C2F
monochromatic
#1A0419 #1A0419 #4C0D4A #80167D #B51FB0

Accessibility & contrast

On white

14.35
#4C0D4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#4C0D4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C0D4A
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0D4A#FFFFFF#000000##FFFFFF
##4C0D4A1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04254C
Deuteranopia (green-blind)
#202D48
Tritanopia (blue-blind)
#4F162B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4c0d4a;
/* rgb */ color: rgb(76, 13, 74);
/* oklch */ color: oklch(30.1% 0.119 329.5);
Tailwind
colors: {
  custom: {
    50: '#81547d',
    500: '#4c0d4a',
    950: '#000000',
  },
}
SCSS
$custom: #4c0d4a;
$custom-light: #81547d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0d4a",
  "rgb": {
    "r": 76,
    "g": 13,
    "b": 74
  },
  "hsl": {
    "h": 301.905,
    "s": 70.787,
    "l": 17.451
  },
  "oklch": {
    "l": 0.30096,
    "c": 0.11921,
    "h": 329.5
  },
  "luminance": 0.02319
}

Semantic roles & 50–950 ramp

primary
#4C0D4A
secondary
#2E8730
accent
#EE403A
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #4C0D4A

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

Preview Lab → · Contrast checker → · Palette generator →

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