#4F172A#4F172A

#4F172A is a dark, moderate pink. Relative luminance 0.024; OKLCH L 30.1% C 0.086 H 2.9°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#4F172A
RGBrgb(79, 23, 42)
HSLhsl(340, 55%, 20%)
HSVhsv(340, 71%, 31%)
CMYKcmyk(0%, 70.9%, 46.8%, 69%)
CIE-LABlab(17.66, 28.10, 1.54)
CIE-LCHlch(17.66, 28.14, 3.14°)
OKLaboklab(30.13% 0.0858 0.0043)
OKLCHoklch(30.13% 0.086 2.9)
XYZxyz(3.9490, 2.4427, 2.4536)
Luminance0.0244 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F172A #174F3C
analogous
#4F1746 #4F172A #4F2017
triadic
#4F172A #2A4F17 #172A4F
tetradic
#4F172A #464F17 #174F3C #20174F
square
#4F172A #464F17 #174F3C #20174F
split-complementary
#4F172A #174F20 #17464F
monochromatic
#18070D #200911 #4F172A #7E2543 #AE335C

Accessibility & contrast

On white

14.11
#4F172A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F172A
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F172A#FFFFFF#000000##FFFFFF
##4F172A1.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f172a;
/* rgb */ color: rgb(79, 23, 42);
/* oklch */ color: oklch(30.1% 0.086 2.9);
Tailwind
colors: {
  custom: {
    50: '#845863',
    500: '#4f172a',
    950: '#000000',
  },
}
SCSS
$custom: #4f172a;
$custom-light: #845863;
$custom-dark: #000000;
JSON
{
  "hex": "#4f172a",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 42
  },
  "hsl": {
    "h": 339.643,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.3013,
    "c": 0.08595,
    "h": 2.9
  },
  "luminance": 0.02442
}

Semantic roles & 50–950 ramp

primary
#4F172A
secondary
#3C866D
accent
#DEAC4A
background
#F8F5F5
surface
#EFE9EA
border
#CAC5C6
text
#0B0305
muted
#7C7879

Preview Lab

Preview with #4F172A

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

Preview Lab → · Contrast checker → · Palette generator →

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