#4C172B#4C172B

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

Color values

HEX#4C172B
RGBrgb(76, 23, 43)
HSLhsl(337, 54%, 19%)
HSVhsv(337, 70%, 30%)
CMYKcmyk(0%, 69.7%, 43.4%, 70.2%)
CIE-LABlab(17.10, 27.12, -0.05)
CIE-LCHlch(17.10, 27.12, 359.89°)
OKLaboklab(29.62% 0.0829 0.0002)
OKLCHoklch(29.62% 0.083 0.1)
XYZxyz(3.7232, 2.3241, 2.5376)
Luminance0.0232 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C172B #174C38
analogous
#4C1746 #4C172B #4C1E17
triadic
#4C172B #2B4C17 #172B4C
tetradic
#4C172B #464C17 #174C38 #1E174C
square
#4C172B #464C17 #174C38 #1E174C
split-complementary
#4C172B #174C1E #17464C
monochromatic
#17070D #1D0910 #4C172B #7B2546 #AA3360

Accessibility & contrast

On white

14.34
#4C172B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C172B
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C172B#FFFFFF#000000##FFFFFF
##4C172B1.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21242C
Deuteranopia (green-blind)
#2F2E2A
Tritanopia (blue-blind)
#53121F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4c172b;
/* rgb */ color: rgb(76, 23, 43);
/* oklch */ color: oklch(29.6% 0.083 0.1);
Tailwind
colors: {
  custom: {
    50: '#815864',
    500: '#4c172b',
    950: '#000000',
  },
}
SCSS
$custom: #4c172b;
$custom-light: #815864;
$custom-dark: #000000;
JSON
{
  "hex": "#4c172b",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 43
  },
  "hsl": {
    "h": 337.358,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29617,
    "c": 0.08287,
    "h": 0.1
  },
  "luminance": 0.02324
}

Semantic roles & 50–950 ramp

primary
#4C172B
secondary
#3C8368
accent
#DDA64B
background
#F8F5F5
surface
#EFE9EA
border
#CAC5C6
text
#0B0305
muted
#7C7879

Preview Lab

Preview with #4C172B

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

Preview Lab → · Contrast checker → · Palette generator →

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