#4C1240#4C1240

#4C1240 is a dark, moderate pink. Relative luminance 0.023; OKLCH L 30.0% C 0.104 H 337.3°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#4C1240
RGBrgb(76, 18, 64)
HSLhsl(312, 62%, 18%)
HSVhsv(312, 76%, 30%)
CMYKcmyk(0%, 76.3%, 15.8%, 70.2%)
CIE-LABlab(17.18, 32.67, -14.82)
CIE-LCHlch(17.18, 35.87, 335.60°)
OKLaboklab(29.98% 0.0962 -0.0402)
OKLCHoklch(29.98% 0.104 337.3)
XYZxyz(4.1223, 2.3396, 5.0840)
Luminance0.0234 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1240 #124C1E
analogous
#3B124C #4C1240 #4C1223
triadic
#4C1240 #404C12 #12404C
tetradic
#4C1240 #4C3B12 #124C1E #12234C
square
#4C1240 #4C3B12 #124C1E #12234C
split-complementary
#4C1240 #234C12 #124C3B
monochromatic
#190615 #1B0616 #4C1240 #7D1E6A #AF2993

Accessibility & contrast

On white

14.31
#4C1240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#4C1240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1240
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1240#FFFFFF#000000##FFFFFF
##4C12401.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142541
Deuteranopia (green-blind)
#272D3F
Tritanopia (blue-blind)
#501527
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4c1240;
/* rgb */ color: rgb(76, 18, 64);
/* oklch */ color: oklch(30.0% 0.104 337.3);
Tailwind
colors: {
  custom: {
    50: '#805675',
    500: '#4c1240',
    950: '#000000',
  },
}
SCSS
$custom: #4c1240;
$custom-light: #805675;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1240",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 64
  },
  "hsl": {
    "h": 312.414,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.29975,
    "c": 0.10427,
    "h": 337.3
  },
  "luminance": 0.02339
}

Semantic roles & 50–950 ramp

primary
#4C1240
secondary
#358545
accent
#E56443
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0A0308
muted
#7C787B

Preview Lab

Preview with #4C1240

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

Preview Lab → · Contrast checker → · Palette generator →

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