#4C1040#4C1040

#4C1040 is a dark, moderate pink. Relative luminance 0.023; OKLCH L 29.8% C 0.107 H 337.2°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#4C1040
RGBrgb(76, 16, 64)
HSLhsl(312, 65%, 18%)
HSVhsv(312, 79%, 30%)
CMYKcmyk(0%, 78.9%, 15.8%, 70.2%)
CIE-LABlab(16.88, 33.50, -15.28)
CIE-LCHlch(16.88, 36.82, 335.49°)
OKLaboklab(29.76% 0.0987 -0.0415)
OKLCHoklch(29.76% 0.107 337.2)
XYZxyz(4.0913, 2.2776, 5.0736)
Luminance0.0228 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1040 #104C1C
analogous
#3A104C #4C1040 #4C1022
triadic
#4C1040 #404C10 #10404C
tetradic
#4C1040 #4C3A10 #104C1C #10224C
square
#4C1040 #4C3A10 #104C1C #10224C
split-complementary
#4C1040 #224C10 #104C3A
monochromatic
#190515 #190515 #4C1040 #7F1B6B #B12595

Accessibility & contrast

On white

14.43
#4C1040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1040
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1040#FFFFFF#000000##FFFFFF
##4C10401.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122441
Deuteranopia (green-blind)
#262D3F
Tritanopia (blue-blind)
#501326
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4c1040;
/* rgb */ color: rgb(76, 16, 64);
/* oklch */ color: oklch(29.8% 0.107 337.2);
Tailwind
colors: {
  custom: {
    50: '#815575',
    500: '#4c1040',
    950: '#000000',
  },
}
SCSS
$custom: #4c1040;
$custom-light: #815575;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1040",
  "rgb": {
    "r": 76,
    "g": 16,
    "b": 64
  },
  "hsl": {
    "h": 312,
    "s": 65.217,
    "l": 18.039
  },
  "oklch": {
    "l": 0.2976,
    "c": 0.10706,
    "h": 337.2
  },
  "luminance": 0.02277
}

Semantic roles & 50–950 ramp

primary
#4C1040
secondary
#328643
accent
#E86140
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0308
muted
#7C787B

Preview Lab

Preview with #4C1040

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

Preview Lab → · Contrast checker → · Palette generator →

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