#4D172B#4D172B

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

Color values

HEX#4D172B
RGBrgb(77, 23, 43)
HSLhsl(338, 54%, 20%)
HSVhsv(338, 70%, 30%)
CMYKcmyk(0%, 70.1%, 44.2%, 69.8%)
CIE-LABlab(17.30, 27.49, 0.26)
CIE-LCHlch(17.30, 27.49, 0.53°)
OKLaboklab(29.8% 0.084 0.001)
OKLCHoklch(29.8% 0.084 0.7)
XYZxyz(3.8033, 2.3654, 2.5413)
Luminance0.0237 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D172B #174D39
analogous
#4D1746 #4D172B #4D1E17
triadic
#4D172B #2B4D17 #172B4D
tetradic
#4D172B #464D17 #174D39 #1E174D
square
#4D172B #464D17 #174D39 #1E174D
split-complementary
#4D172B #174D1E #17464D
monochromatic
#18070D #1E0911 #4D172B #7C2545 #AB3360

Accessibility & contrast

On white

14.26
#4D172B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D172B
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D172B#FFFFFF#000000##FFFFFF
##4D172B1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21242C
Deuteranopia (green-blind)
#302E2A
Tritanopia (blue-blind)
#54111F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4d172b;
/* rgb */ color: rgb(77, 23, 43);
/* oklch */ color: oklch(29.8% 0.084 0.7);
Tailwind
colors: {
  custom: {
    50: '#825864',
    500: '#4d172b',
    950: '#000000',
  },
}
SCSS
$custom: #4d172b;
$custom-light: #825864;
$custom-dark: #000000;
JSON
{
  "hex": "#4d172b",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 43
  },
  "hsl": {
    "h": 337.778,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29799,
    "c": 0.08402,
    "h": 0.7
  },
  "luminance": 0.02365
}

Semantic roles & 50–950 ramp

primary
#4D172B
secondary
#3C8469
accent
#DDA74A
background
#F8F5F5
surface
#EFE9EA
border
#CAC5C6
text
#0B0305
muted
#7C7879

Preview Lab

Preview with #4D172B

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

Preview Lab → · Contrast checker → · Palette generator →

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