#4C172F#4C172F

#4C172F is a dark, moderate pink. Relative luminance 0.024; OKLCH L 29.8% C 0.085 H 355.4°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#4C172F
RGBrgb(76, 23, 47)
HSLhsl(333, 54%, 19%)
HSVhsv(333, 70%, 30%)
CMYKcmyk(0%, 69.7%, 38.2%, 70.2%)
CIE-LABlab(17.25, 27.66, -2.70)
CIE-LCHlch(17.25, 27.79, 354.43°)
OKLaboklab(29.77% 0.0844 -0.0067)
OKLCHoklch(29.77% 0.085 355.4)
XYZxyz(3.8002, 2.3549, 2.9432)
Luminance0.0236 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C172F #174C34
analogous
#4C174A #4C172F #4C1A17
triadic
#4C172F #2F4C17 #172F4C
tetradic
#4C172F #4A4C17 #174C34 #1A174C
square
#4C172F #4A4C17 #174C34 #1A174C
split-complementary
#4C172F #174C1A #174A4C
monochromatic
#17070F #1D0912 #4C172F #7B254C #AA3369

Accessibility & contrast

On white

14.28
#4C172F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C172F
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C172F#FFFFFF#000000##FFFFFF
##4C172F1.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202430
Deuteranopia (green-blind)
#2E2E2E
Tritanopia (blue-blind)
#521321
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4c172f;
/* rgb */ color: rgb(76, 23, 47);
/* oklch */ color: oklch(29.8% 0.085 355.4);
Tailwind
colors: {
  custom: {
    50: '#815867',
    500: '#4c172f',
    950: '#000000',
  },
}
SCSS
$custom: #4c172f;
$custom-light: #815867;
$custom-dark: #000000;
JSON
{
  "hex": "#4c172f",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 47
  },
  "hsl": {
    "h": 332.83,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29773,
    "c": 0.0847,
    "h": 355.4
  },
  "luminance": 0.02355
}

Semantic roles & 50–950 ramp

primary
#4C172F
secondary
#3C8363
accent
#DD9B4B
background
#F8F5F6
surface
#EFE9EB
border
#CAC5C6
text
#0B0306
muted
#7C787A

Preview Lab

Preview with #4C172F

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

Preview Lab → · Contrast checker → · Palette generator →

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