#4D172C#4D172C

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

Color values

HEX#4D172C
RGBrgb(77, 23, 44)
HSLhsl(337, 54%, 20%)
HSVhsv(337, 70%, 30%)
CMYKcmyk(0%, 70.1%, 42.9%, 69.8%)
CIE-LABlab(17.33, 27.62, -0.41)
CIE-LCHlch(17.33, 27.62, 359.15°)
OKLaboklab(29.84% 0.0844 -0.0007)
OKLCHoklch(29.84% 0.084 359.5)
XYZxyz(3.8218, 2.3729, 2.6391)
Luminance0.0237 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D172C #174D38
analogous
#4D1747 #4D172C #4D1D17
triadic
#4D172C #2C4D17 #172C4D
tetradic
#4D172C #474D17 #174D38 #1D174D
square
#4D172C #474D17 #174D38 #1D174D
split-complementary
#4D172C #174D1D #17474D
monochromatic
#18070D #1E0911 #4D172C #7C2547 #AB3362

Accessibility & contrast

On white

14.24
#4D172C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D172C
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D172C#FFFFFF#000000##FFFFFF
##4D172C1.0014.241.4714.24
#FFFFFF14.241.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21242D
Deuteranopia (green-blind)
#2F2E2B
Tritanopia (blue-blind)
#54121F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4d172c;
/* rgb */ color: rgb(77, 23, 44);
/* oklch */ color: oklch(29.8% 0.084 359.5);
Tailwind
colors: {
  custom: {
    50: '#825864',
    500: '#4d172c',
    950: '#000000',
  },
}
SCSS
$custom: #4d172c;
$custom-light: #825864;
$custom-dark: #000000;
JSON
{
  "hex": "#4d172c",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 44
  },
  "hsl": {
    "h": 336.667,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29837,
    "c": 0.08441,
    "h": 359.5
  },
  "luminance": 0.02372
}

Semantic roles & 50–950 ramp

primary
#4D172C
secondary
#3C8468
accent
#DDA44A
background
#F8F5F6
surface
#EFE9EB
border
#CAC5C6
text
#0B0305
muted
#7C787A

Preview Lab

Preview with #4D172C

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

Preview Lab → · Contrast checker → · Palette generator →

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