#4C173F#4C173F

#4C173F is a dark, moderate pink. Relative luminance 0.025; OKLCH L 30.5% C 0.096 H 338.6°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#4C173F
RGBrgb(76, 23, 63)
HSLhsl(315, 54%, 19%)
HSVhsv(315, 70%, 30%)
CMYKcmyk(0%, 69.7%, 17.1%, 70.2%)
CIE-LABlab(17.96, 30.18, -12.91)
CIE-LCHlch(17.96, 32.83, 336.84°)
OKLaboklab(30.53% 0.0891 -0.0349)
OKLCHoklch(30.53% 0.096 338.6)
XYZxyz(4.1842, 2.5085, 4.9655)
Luminance0.0251 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C173F #174C24
analogous
#3F174C #4C173F #4C1725
triadic
#4C173F #3F4C17 #173F4C
tetradic
#4C173F #4C3F17 #174C24 #17254C
square
#4C173F #4C3F17 #174C24 #17254C
split-complementary
#4C173F #254C17 #174C3F
monochromatic
#170713 #1D0918 #4C173F #7B2566 #AA338D

Accessibility & contrast

On white

13.99
#4C173F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#4C173F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C173F
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C173F#FFFFFF#000000##FFFFFF
##4C173F1.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192740
Deuteranopia (green-blind)
#292F3E
Tritanopia (blue-blind)
#501928
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4c173f;
/* rgb */ color: rgb(76, 23, 63);
/* oklch */ color: oklch(30.5% 0.096 338.6);
Tailwind
colors: {
  custom: {
    50: '#805874',
    500: '#4c173f',
    950: '#000000',
  },
}
SCSS
$custom: #4c173f;
$custom-light: #805874;
$custom-dark: #000000;
JSON
{
  "hex": "#4c173f",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 63
  },
  "hsl": {
    "h": 314.717,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.30526,
    "c": 0.09569,
    "h": 338.6
  },
  "luminance": 0.02508
}

Semantic roles & 50–950 ramp

primary
#4C173F
secondary
#3C834D
accent
#DD6F4B
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0A0308
muted
#7C787B

Preview Lab

Preview with #4C173F

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

Preview Lab → · Contrast checker → · Palette generator →

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