#4C172A#4C172A

#4C172A is a dark, moderate pink. Relative luminance 0.023; OKLCH L 29.6% C 0.082 H 1.3°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#4C172A
RGBrgb(76, 23, 42)
HSLhsl(338, 54%, 19%)
HSVhsv(338, 70%, 30%)
CMYKcmyk(0%, 69.7%, 44.7%, 70.2%)
CIE-LABlab(17.07, 26.99, 0.61)
CIE-LCHlch(17.07, 27.00, 1.30°)
OKLaboklab(29.58% 0.0825 0.0019)
OKLCHoklch(29.58% 0.082 1.3)
XYZxyz(3.7050, 2.3169, 2.4421)
Luminance0.0232 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C172A #174C39
analogous
#4C1745 #4C172A #4C1F17
triadic
#4C172A #2A4C17 #172A4C
tetradic
#4C172A #454C17 #174C39 #1F174C
square
#4C172A #454C17 #174C39 #1F174C
split-complementary
#4C172A #174C1F #17454C
monochromatic
#17070D #1D0910 #4C172A #7B2544 #AA335E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C172A#FFFFFF#000000##FFFFFF
##4C172A1.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)
#21242B
Deuteranopia (green-blind)
#2F2E29
Tritanopia (blue-blind)
#53111E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4c172a;
/* rgb */ color: rgb(76, 23, 42);
/* oklch */ color: oklch(29.6% 0.082 1.3);
Tailwind
colors: {
  custom: {
    50: '#815863',
    500: '#4c172a',
    950: '#000000',
  },
}
SCSS
$custom: #4c172a;
$custom-light: #815863;
$custom-dark: #000000;
JSON
{
  "hex": "#4c172a",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 42
  },
  "hsl": {
    "h": 338.491,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.2958,
    "c": 0.08249,
    "h": 1.3
  },
  "luminance": 0.02316
}

Semantic roles & 50–950 ramp

primary
#4C172A
secondary
#3C836A
accent
#DDA94B
background
#F8F5F5
surface
#EFE9EA
border
#CAC5C6
text
#0B0305
muted
#7C7879

Preview Lab

Preview with #4C172A

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

Preview Lab → · Contrast checker → · Palette generator →

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