#4F173F#4F173F

#4F173F is a dark, moderate pink. Relative luminance 0.026; OKLCH L 31.0% C 0.098 H 340.8°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#4F173F
RGBrgb(79, 23, 63)
HSLhsl(317, 55%, 20%)
HSVhsv(317, 71%, 31%)
CMYKcmyk(0%, 70.9%, 20.3%, 69%)
CIE-LABlab(18.52, 31.14, -12.00)
CIE-LCHlch(18.52, 33.37, 338.93°)
OKLaboklab(31.04% 0.0927 -0.0322)
OKLCHoklch(31.04% 0.098 340.8)
XYZxyz(4.4282, 2.6343, 4.9769)
Luminance0.0263 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F173F #174F27
analogous
#43174F #4F173F #4F1723
triadic
#4F173F #3F4F17 #173F4F
tetradic
#4F173F #4F4317 #174F27 #17234F
square
#4F173F #4F4317 #174F27 #17234F
split-complementary
#4F173F #234F17 #174F43
monochromatic
#180713 #200919 #4F173F #7E2565 #AE338B

Accessibility & contrast

On white

13.75
#4F173F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#4F173F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F173F
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F173F#FFFFFF#000000##FFFFFF
##4F173F1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2740
Deuteranopia (green-blind)
#2C303E
Tritanopia (blue-blind)
#541828
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4f173f;
/* rgb */ color: rgb(79, 23, 63);
/* oklch */ color: oklch(31.0% 0.098 340.8);
Tailwind
colors: {
  custom: {
    50: '#835974',
    500: '#4f173f',
    950: '#000000',
  },
}
SCSS
$custom: #4f173f;
$custom-light: #835974;
$custom-dark: #000000;
JSON
{
  "hex": "#4f173f",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 63
  },
  "hsl": {
    "h": 317.143,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.31044,
    "c": 0.09816,
    "h": 340.8
  },
  "luminance": 0.02634
}

Semantic roles & 50–950 ramp

primary
#4F173F
secondary
#3C8651
accent
#DE744A
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0408
muted
#7C797B

Preview Lab

Preview with #4F173F

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

Preview Lab → · Contrast checker → · Palette generator →

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