#4F172D#4F172D

#4F172D is a dark, moderate pink. Relative luminance 0.025; OKLCH L 30.2% C 0.087 H 359.5°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#4F172D
RGBrgb(79, 23, 45)
HSLhsl(336, 55%, 20%)
HSVhsv(336, 71%, 31%)
CMYKcmyk(0%, 70.9%, 43%, 69%)
CIE-LABlab(17.76, 28.47, -0.45)
CIE-LCHlch(17.76, 28.48, 359.09°)
OKLaboklab(30.24% 0.0871 -0.0008)
OKLCHoklch(30.24% 0.087 359.5)
XYZxyz(4.0048, 2.4650, 2.7470)
Luminance0.0246 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F172D #174F39
analogous
#4F1749 #4F172D #4F1D17
triadic
#4F172D #2D4F17 #172D4F
tetradic
#4F172D #494F17 #174F39 #1D174F
square
#4F172D #494F17 #174F39 #1D174F
split-complementary
#4F172D #174F1D #17494F
monochromatic
#18070D #200912 #4F172D #7E2548 #AE3363

Accessibility & contrast

On white

14.07
#4F172D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#4F172D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F172D
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F172D#FFFFFF#000000##FFFFFF
##4F172D1.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21252E
Deuteranopia (green-blind)
#302F2C
Tritanopia (blue-blind)
#561120
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4f172d;
/* rgb */ color: rgb(79, 23, 45);
/* oklch */ color: oklch(30.2% 0.087 359.5);
Tailwind
colors: {
  custom: {
    50: '#835865',
    500: '#4f172d',
    950: '#000000',
  },
}
SCSS
$custom: #4f172d;
$custom-light: #835865;
$custom-dark: #000000;
JSON
{
  "hex": "#4f172d",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 45
  },
  "hsl": {
    "h": 336.429,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.30239,
    "c": 0.08706,
    "h": 359.5
  },
  "luminance": 0.02465
}

Semantic roles & 50–950 ramp

primary
#4F172D
secondary
#3C8669
accent
#DEA44A
background
#F8F5F6
surface
#EFE9EB
border
#CAC5C6
text
#0B0305
muted
#7C787A

Preview Lab

Preview with #4F172D

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

Preview Lab → · Contrast checker → · Palette generator →

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