#4C172D#4C172D

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

Color values

HEX#4C172D
RGBrgb(76, 23, 45)
HSLhsl(335, 54%, 19%)
HSVhsv(335, 70%, 30%)
CMYKcmyk(0%, 69.7%, 40.8%, 70.2%)
CIE-LABlab(17.18, 27.38, -1.38)
CIE-LCHlch(17.18, 27.42, 357.12°)
OKLaboklab(29.69% 0.0837 -0.0033)
OKLCHoklch(29.69% 0.084 357.8)
XYZxyz(3.7608, 2.3392, 2.7356)
Luminance0.0234 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C172D #174C36
analogous
#4C1748 #4C172D #4C1C17
triadic
#4C172D #2D4C17 #172D4C
tetradic
#4C172D #484C17 #174C36 #1C174C
square
#4C172D #484C17 #174C36 #1C174C
split-complementary
#4C172D #174C1C #17484C
monochromatic
#17070E #1D0911 #4C172D #7B2549 #AA3365

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C172D#FFFFFF#000000##FFFFFF
##4C172D1.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)
#20242E
Deuteranopia (green-blind)
#2F2E2C
Tritanopia (blue-blind)
#521220
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4c172d;
/* rgb */ color: rgb(76, 23, 45);
/* oklch */ color: oklch(29.7% 0.084 357.8);
Tailwind
colors: {
  custom: {
    50: '#815865',
    500: '#4c172d',
    950: '#000000',
  },
}
SCSS
$custom: #4c172d;
$custom-light: #815865;
$custom-dark: #000000;
JSON
{
  "hex": "#4c172d",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 45
  },
  "hsl": {
    "h": 335.094,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29693,
    "c": 0.08373,
    "h": 357.8
  },
  "luminance": 0.02339
}

Semantic roles & 50–950 ramp

primary
#4C172D
secondary
#3C8365
accent
#DDA04B
background
#F8F5F6
surface
#EFE9EB
border
#CAC5C6
text
#0B0305
muted
#7C787A

Preview Lab

Preview with #4C172D

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

Preview Lab → · Contrast checker → · Palette generator →

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