#4F172C#4F172C

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

Color values

HEX#4F172C
RGBrgb(79, 23, 44)
HSLhsl(338, 55%, 20%)
HSVhsv(338, 71%, 31%)
CMYKcmyk(0%, 70.9%, 44.3%, 69%)
CIE-LABlab(17.72, 28.34, 0.21)
CIE-LCHlch(17.72, 28.35, 0.42°)
OKLaboklab(30.2% 0.0867 0.0009)
OKLCHoklch(30.2% 0.087 0.6)
XYZxyz(3.9857, 2.4574, 2.6468)
Luminance0.0246 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F172C #174F3A
analogous
#4F1748 #4F172C #4F1E17
triadic
#4F172C #2C4F17 #172C4F
tetradic
#4F172C #484F17 #174F3A #1E174F
square
#4F172C #484F17 #174F3A #1E174F
split-complementary
#4F172C #174F1E #17484F
monochromatic
#18070D #200912 #4F172C #7E2546 #AE3361

Accessibility & contrast

On white

14.08
#4F172C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F172C
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F172C#FFFFFF#000000##FFFFFF
##4F172C1.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22252D
Deuteranopia (green-blind)
#312F2B
Tritanopia (blue-blind)
#56111F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4f172c;
/* rgb */ color: rgb(79, 23, 44);
/* oklch */ color: oklch(30.2% 0.087 0.6);
Tailwind
colors: {
  custom: {
    50: '#835864',
    500: '#4f172c',
    950: '#000000',
  },
}
SCSS
$custom: #4f172c;
$custom-light: #835864;
$custom-dark: #000000;
JSON
{
  "hex": "#4f172c",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 44
  },
  "hsl": {
    "h": 337.5,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.30202,
    "c": 0.08666,
    "h": 0.6
  },
  "luminance": 0.02457
}

Semantic roles & 50–950 ramp

primary
#4F172C
secondary
#3C866A
accent
#DEA64A
background
#F8F5F6
surface
#EFE9EB
border
#CAC5C6
text
#0B0305
muted
#7C787A

Preview Lab

Preview with #4F172C

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

Preview Lab → · Contrast checker → · Palette generator →

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