#4F173B#4F173B

#4F173B is a dark, moderate pink. Relative luminance 0.026; OKLCH L 30.8% C 0.095 H 344.6°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#4F173B
RGBrgb(79, 23, 59)
HSLhsl(321, 55%, 20%)
HSVhsv(321, 71%, 31%)
CMYKcmyk(0%, 70.9%, 25.3%, 69%)
CIE-LABlab(18.33, 30.49, -9.50)
CIE-LCHlch(18.33, 31.93, 342.69°)
OKLaboklab(30.84% 0.0917 -0.0253)
OKLCHoklch(30.84% 0.095 344.6)
XYZxyz(4.3204, 2.5912, 4.4094)
Luminance0.0259 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F173B #174F2B
analogous
#47174F #4F173B #4F171F
triadic
#4F173B #3B4F17 #173B4F
tetradic
#4F173B #4F4717 #174F2B #171F4F
square
#4F173B #4F4717 #174F2B #171F4F
split-complementary
#4F173B #1F4F17 #174F47
monochromatic
#180712 #200918 #4F173B #7E255E #AE3382

Accessibility & contrast

On white

13.83
#4F173B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#4F173B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F173B
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F173B#FFFFFF#000000##FFFFFF
##4F173B1.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D273C
Deuteranopia (green-blind)
#2D303A
Tritanopia (blue-blind)
#541726
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4f173b;
/* rgb */ color: rgb(79, 23, 59);
/* oklch */ color: oklch(30.8% 0.095 344.6);
Tailwind
colors: {
  custom: {
    50: '#835871',
    500: '#4f173b',
    950: '#000000',
  },
}
SCSS
$custom: #4f173b;
$custom-light: #835871;
$custom-dark: #000000;
JSON
{
  "hex": "#4f173b",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 59
  },
  "hsl": {
    "h": 321.429,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.30843,
    "c": 0.09514,
    "h": 344.6
  },
  "luminance": 0.02591
}

Semantic roles & 50–950 ramp

primary
#4F173B
secondary
#3C8656
accent
#DE7F4A
background
#F8F5F6
surface
#EFE9EC
border
#CAC5C7
text
#0B0407
muted
#7C797A

Preview Lab

Preview with #4F173B

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

Preview Lab → · Contrast checker → · Palette generator →

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