#4C1228#4C1228

#4C1228 is a dark, moderate pink. Relative luminance 0.021; OKLCH L 28.9% C 0.089 H 1.3°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#4C1228
RGBrgb(76, 18, 40)
HSLhsl(337, 62%, 18%)
HSVhsv(337, 76%, 30%)
CMYKcmyk(0%, 76.3%, 47.4%, 70.2%)
CIE-LABlab(16.12, 29.16, 0.67)
CIE-LCHlch(16.12, 29.17, 1.32°)
OKLaboklab(28.85% 0.0893 0.0021)
OKLCHoklch(28.85% 0.089 1.3)
XYZxyz(3.5801, 2.1228, 2.2283)
Luminance0.0212 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1228 #124C36
analogous
#4C1245 #4C1228 #4C1912
triadic
#4C1228 #284C12 #12284C
tetradic
#4C1228 #454C12 #124C36 #19124C
square
#4C1228 #454C12 #124C36 #19124C
split-complementary
#4C1228 #124C19 #12454C
monochromatic
#19060D #1B060E #4C1228 #7D1E42 #AF295C

Accessibility & contrast

On white

14.74
#4C1228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#4C1228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1228
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1228#FFFFFF#000000##FFFFFF
##4C12281.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2129
Deuteranopia (green-blind)
#2E2C27
Tritanopia (blue-blind)
#530A1B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #4c1228;
/* rgb */ color: rgb(76, 18, 40);
/* oklch */ color: oklch(28.9% 0.089 1.3);
Tailwind
colors: {
  custom: {
    50: '#815561',
    500: '#4c1228',
    950: '#000000',
  },
}
SCSS
$custom: #4c1228;
$custom-light: #815561;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1228",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 40
  },
  "hsl": {
    "h": 337.241,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.28853,
    "c": 0.08931,
    "h": 1.3
  },
  "luminance": 0.02122
}

Semantic roles & 50–950 ramp

primary
#4C1228
secondary
#358567
accent
#E5A743
background
#F8F5F5
surface
#EFE9E9
border
#CAC5C5
text
#0B0305
muted
#7C7879

Preview Lab

Preview with #4C1228

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

Preview Lab → · Contrast checker → · Palette generator →

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