#4A172E#4A172E

#4A172E is a dark, moderate pink. Relative luminance 0.023; OKLCH L 29.4% C 0.082 H 355.3°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#4A172E
RGBrgb(74, 23, 46)
HSLhsl(333, 53%, 19%)
HSVhsv(333, 69%, 29%)
CMYKcmyk(0%, 68.9%, 37.8%, 71%)
CIE-LABlab(16.83, 26.79, -2.65)
CIE-LCHlch(16.83, 26.92, 354.35°)
OKLaboklab(29.37% 0.0817 -0.0066)
OKLCHoklch(29.37% 0.082 355.3)
XYZxyz(3.6238, 2.2663, 2.8308)
Luminance0.0227 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A172E #174A33
analogous
#4A1748 #4A172E #4A1A17
triadic
#4A172E #2E4A17 #172E4A
tetradic
#4A172E #484A17 #174A33 #1A174A
square
#4A172E #484A17 #174A33 #1A174A
split-complementary
#4A172E #174A1A #17484A
monochromatic
#17070F #1B0811 #4A172E #79264B #A73468

Accessibility & contrast

On white

14.45
#4A172E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#4A172E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A172E
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A172E#FFFFFF#000000##FFFFFF
##4A172E1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F242F
Deuteranopia (green-blind)
#2D2D2D
Tritanopia (blue-blind)
#501320
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #4a172e;
/* rgb */ color: rgb(74, 23, 46);
/* oklch */ color: oklch(29.4% 0.082 355.3);
Tailwind
colors: {
  custom: {
    50: '#7f5766',
    500: '#4a172e',
    950: '#000000',
  },
}
SCSS
$custom: #4a172e;
$custom-light: #7f5766;
$custom-dark: #000000;
JSON
{
  "hex": "#4a172e",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 46
  },
  "hsl": {
    "h": 332.941,
    "s": 52.577,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29373,
    "c": 0.082,
    "h": 355.3
  },
  "luminance": 0.02266
}

Semantic roles & 50–950 ramp

primary
#4A172E
secondary
#3C8162
accent
#DC9B4C
background
#F7F5F6
surface
#EEE9EB
border
#C9C5C6
text
#0A0306
muted
#7C787A

Preview Lab

Preview with #4A172E

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

Preview Lab → · Contrast checker → · Palette generator →

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