#4C0C40#4C0C40

#4C0C40 is a dark, moderate pink. Relative luminance 0.022; OKLCH L 29.4% C 0.112 H 337.0°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#4C0C40
RGBrgb(76, 12, 64)
HSLhsl(311, 73%, 17%)
HSVhsv(311, 84%, 30%)
CMYKcmyk(0%, 84.2%, 15.8%, 70.2%)
CIE-LABlab(16.36, 35.00, -16.10)
CIE-LCHlch(16.36, 38.52, 335.30°)
OKLaboklab(29.38% 0.1032 -0.0438)
OKLCHoklch(29.38% 0.112 337)
XYZxyz(4.0375, 2.1700, 5.0557)
Luminance0.0217 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0C40 #0C4C18
analogous
#380C4C #4C0C40 #4C0C20
triadic
#4C0C40 #404C0C #0C404C
tetradic
#4C0C40 #4C380C #0C4C18 #0C204C
square
#4C0C40 #4C380C #0C4C18 #0C204C
split-complementary
#4C0C40 #204C0C #0C4C38
monochromatic
#1A0416 #1A0416 #4C0C40 #81146D #B61D99

Accessibility & contrast

On white

14.64
#4C0C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#4C0C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C0C40
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0C40#FFFFFF#000000##FFFFFF
##4C0C401.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2241
Deuteranopia (green-blind)
#242C3F
Tritanopia (blue-blind)
#511025
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #4c0c40;
/* rgb */ color: rgb(76, 12, 64);
/* oklch */ color: oklch(29.4% 0.112 337.0);
Tailwind
colors: {
  custom: {
    50: '#815375',
    500: '#4c0c40',
    950: '#000000',
  },
}
SCSS
$custom: #4c0c40;
$custom-light: #815375;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0c40",
  "rgb": {
    "r": 76,
    "g": 12,
    "b": 64
  },
  "hsl": {
    "h": 311.25,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.2938,
    "c": 0.11209,
    "h": 337
  },
  "luminance": 0.0217
}

Semantic roles & 50–950 ramp

primary
#4C0C40
secondary
#2C883D
accent
#EF5B38
background
#F8F5F7
surface
#EFE8ED
border
#CAC4C8
text
#0B0308
muted
#7C787B

Preview Lab

Preview with #4C0C40

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

Preview Lab → · Contrast checker → · Palette generator →

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