#4E172A#4E172A

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

Color values

HEX#4E172A
RGBrgb(78, 23, 42)
HSLhsl(339, 54%, 20%)
HSVhsv(339, 71%, 31%)
CMYKcmyk(0%, 70.5%, 46.2%, 69.4%)
CIE-LABlab(17.46, 27.73, 1.23)
CIE-LCHlch(17.46, 27.76, 2.54°)
OKLaboklab(29.95% 0.0847 0.0035)
OKLCHoklch(29.95% 0.085 2.4)
XYZxyz(3.8665, 2.4001, 2.4497)
Luminance0.0240 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E172A #174E3B
analogous
#4E1745 #4E172A #4E2017
triadic
#4E172A #2A4E17 #172A4E
tetradic
#4E172A #454E17 #174E3B #20174E
square
#4E172A #454E17 #174E3B #20174E
split-complementary
#4E172A #174E20 #17454E
monochromatic
#18070D #1F0911 #4E172A #7D2543 #AD335D

Accessibility & contrast

On white

14.19
#4E172A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E172A
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E172A#FFFFFF#000000##FFFFFF
##4E172A1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22242A
Deuteranopia (green-blind)
#302F29
Tritanopia (blue-blind)
#55111E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4e172a;
/* rgb */ color: rgb(78, 23, 42);
/* oklch */ color: oklch(29.9% 0.085 2.4);
Tailwind
colors: {
  custom: {
    50: '#835863',
    500: '#4e172a',
    950: '#000000',
  },
}
SCSS
$custom: #4e172a;
$custom-light: #835863;
$custom-dark: #000000;
JSON
{
  "hex": "#4e172a",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 42
  },
  "hsl": {
    "h": 339.273,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29946,
    "c": 0.0848,
    "h": 2.4
  },
  "luminance": 0.024
}

Semantic roles & 50–950 ramp

primary
#4E172A
secondary
#3C856C
accent
#DEAB4A
background
#F8F5F5
surface
#EFE9EA
border
#CAC5C6
text
#0B0305
muted
#7C7879

Preview Lab

Preview with #4E172A

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

Preview Lab → · Contrast checker → · Palette generator →

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