#4D172E#4D172E

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

Color values

HEX#4D172E
RGBrgb(77, 23, 46)
HSLhsl(334, 54%, 20%)
HSVhsv(334, 70%, 30%)
CMYKcmyk(0%, 70.1%, 40.3%, 69.8%)
CIE-LABlab(17.41, 27.88, -1.73)
CIE-LCHlch(17.41, 27.93, 356.45°)
OKLaboklab(29.91% 0.0852 -0.0042)
OKLCHoklch(29.91% 0.085 357.2)
XYZxyz(3.8603, 2.3883, 2.8419)
Luminance0.0239 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D172E #174D36
analogous
#4D1749 #4D172E #4D1B17
triadic
#4D172E #2E4D17 #172E4D
tetradic
#4D172E #494D17 #174D36 #1B174D
square
#4D172E #494D17 #174D36 #1B174D
split-complementary
#4D172E #174D1B #17494D
monochromatic
#18070E #1E0912 #4D172E #7C254A #AB3366

Accessibility & contrast

On white

14.21
#4D172E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#4D172E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D172E
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D172E#FFFFFF#000000##FFFFFF
##4D172E1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20242F
Deuteranopia (green-blind)
#2F2E2D
Tritanopia (blue-blind)
#541220
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4d172e;
/* rgb */ color: rgb(77, 23, 46);
/* oklch */ color: oklch(29.9% 0.085 357.2);
Tailwind
colors: {
  custom: {
    50: '#825866',
    500: '#4d172e',
    950: '#000000',
  },
}
SCSS
$custom: #4d172e;
$custom-light: #825866;
$custom-dark: #000000;
JSON
{
  "hex": "#4d172e",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 46
  },
  "hsl": {
    "h": 334.444,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29914,
    "c": 0.08529,
    "h": 357.2
  },
  "luminance": 0.02388
}

Semantic roles & 50–950 ramp

primary
#4D172E
secondary
#3C8465
accent
#DD9F4A
background
#F8F5F6
surface
#EFE9EB
border
#CAC5C6
text
#0B0306
muted
#7C787A

Preview Lab

Preview with #4D172E

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

Preview Lab → · Contrast checker → · Palette generator →

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