#4C172E#4C172E

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

Color values

HEX#4C172E
RGBrgb(76, 23, 46)
HSLhsl(334, 54%, 19%)
HSVhsv(334, 70%, 30%)
CMYKcmyk(0%, 69.7%, 39.5%, 70.2%)
CIE-LABlab(17.21, 27.52, -2.04)
CIE-LCHlch(17.21, 27.59, 355.76°)
OKLaboklab(29.73% 0.0841 -0.005)
OKLCHoklch(29.73% 0.084 356.6)
XYZxyz(3.7802, 2.3470, 2.8382)
Luminance0.0235 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C172E #174C35
analogous
#4C1749 #4C172E #4C1B17
triadic
#4C172E #2E4C17 #172E4C
tetradic
#4C172E #494C17 #174C35 #1B174C
square
#4C172E #494C17 #174C35 #1B174C
split-complementary
#4C172E #174C1B #17494C
monochromatic
#17070E #1D0912 #4C172E #7B254A #AA3367

Accessibility & contrast

On white

14.29
#4C172E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C172E
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C172E#FFFFFF#000000##FFFFFF
##4C172E1.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20242F
Deuteranopia (green-blind)
#2E2E2D
Tritanopia (blue-blind)
#521320
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4c172e;
/* rgb */ color: rgb(76, 23, 46);
/* oklch */ color: oklch(29.7% 0.084 356.6);
Tailwind
colors: {
  custom: {
    50: '#815866',
    500: '#4c172e',
    950: '#000000',
  },
}
SCSS
$custom: #4c172e;
$custom-light: #815866;
$custom-dark: #000000;
JSON
{
  "hex": "#4c172e",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 46
  },
  "hsl": {
    "h": 333.962,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29733,
    "c": 0.0842,
    "h": 356.6
  },
  "luminance": 0.02347
}

Semantic roles & 50–950 ramp

primary
#4C172E
secondary
#3C8364
accent
#DD9E4B
background
#F8F5F6
surface
#EFE9EB
border
#CAC5C6
text
#0B0306
muted
#7C787A

Preview Lab

Preview with #4C172E

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

Preview Lab → · Contrast checker → · Palette generator →

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