#4F172B#4F172B

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

Color values

HEX#4F172B
RGBrgb(79, 23, 43)
HSLhsl(339, 55%, 20%)
HSVhsv(339, 71%, 31%)
CMYKcmyk(0%, 70.9%, 45.6%, 69%)
CIE-LABlab(17.69, 28.22, 0.87)
CIE-LCHlch(17.69, 28.24, 1.77°)
OKLaboklab(30.17% 0.0863 0.0026)
OKLCHoklch(30.17% 0.086 1.7)
XYZxyz(3.9672, 2.4499, 2.5490)
Luminance0.0245 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F172B #174F3B
analogous
#4F1747 #4F172B #4F1F17
triadic
#4F172B #2B4F17 #172B4F
tetradic
#4F172B #474F17 #174F3B #1F174F
square
#4F172B #474F17 #174F3B #1F174F
split-complementary
#4F172B #174F1F #17474F
monochromatic
#18070D #200911 #4F172B #7E2545 #AE335F

Accessibility & contrast

On white

14.10
#4F172B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F172B
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F172B#FFFFFF#000000##FFFFFF
##4F172B1.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f172b;
/* rgb */ color: rgb(79, 23, 43);
/* oklch */ color: oklch(30.2% 0.086 1.7);
Tailwind
colors: {
  custom: {
    50: '#835864',
    500: '#4f172b',
    950: '#000000',
  },
}
SCSS
$custom: #4f172b;
$custom-light: #835864;
$custom-dark: #000000;
JSON
{
  "hex": "#4f172b",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 43
  },
  "hsl": {
    "h": 338.571,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.30165,
    "c": 0.0863,
    "h": 1.7
  },
  "luminance": 0.02449
}

Semantic roles & 50–950 ramp

primary
#4F172B
secondary
#3C866C
accent
#DEA94A
background
#F8F5F5
surface
#EFE9EA
border
#CAC5C6
text
#0B0305
muted
#7C7879

Preview Lab

Preview with #4F172B

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

Preview Lab → · Contrast checker → · Palette generator →

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