#4A172F#4A172F

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

Color values

HEX#4A172F
RGBrgb(74, 23, 47)
HSLhsl(332, 53%, 19%)
HSVhsv(332, 69%, 29%)
CMYKcmyk(0%, 68.9%, 36.5%, 71%)
CIE-LABlab(16.87, 26.93, -3.31)
CIE-LCHlch(16.87, 27.13, 353.00°)
OKLaboklab(29.41% 0.0821 -0.0084)
OKLCHoklch(29.41% 0.083 354.2)
XYZxyz(3.6437, 2.2743, 2.9359)
Luminance0.0227 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A172F #174A32
analogous
#4A1749 #4A172F #4A1917
triadic
#4A172F #2F4A17 #172F4A
tetradic
#4A172F #494A17 #174A32 #19174A
square
#4A172F #494A17 #174A32 #19174A
split-complementary
#4A172F #174A19 #17494A
monochromatic
#17070F #1B0811 #4A172F #79264D #A7346A

Accessibility & contrast

On white

14.43
#4A172F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A172F
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A172F#FFFFFF#000000##FFFFFF
##4A172F1.0014.431.4514.43
#FFFFFF14.431.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2430
Deuteranopia (green-blind)
#2D2D2E
Tritanopia (blue-blind)
#501421
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4a172f;
/* rgb */ color: rgb(74, 23, 47);
/* oklch */ color: oklch(29.4% 0.083 354.2);
Tailwind
colors: {
  custom: {
    50: '#7f5767',
    500: '#4a172f',
    950: '#000000',
  },
}
SCSS
$custom: #4a172f;
$custom-light: #7f5767;
$custom-dark: #000000;
JSON
{
  "hex": "#4a172f",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 47
  },
  "hsl": {
    "h": 331.765,
    "s": 52.577,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29414,
    "c": 0.08253,
    "h": 354.2
  },
  "luminance": 0.02274
}

Semantic roles & 50–950 ramp

primary
#4A172F
secondary
#3C8160
accent
#DC984C
background
#F7F5F6
surface
#EEE9EB
border
#C9C5C6
text
#0A0306
muted
#7C787A

Preview Lab

Preview with #4A172F

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

Preview Lab → · Contrast checker → · Palette generator →

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