#4D173F#4D173F

#4D173F is a dark, moderate pink. Relative luminance 0.025; OKLCH L 30.7% C 0.097 H 339.4°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#4D173F
RGBrgb(77, 23, 63)
HSLhsl(316, 54%, 20%)
HSVhsv(316, 70%, 30%)
CMYKcmyk(0%, 70.1%, 18.2%, 69.8%)
CIE-LABlab(18.14, 30.50, -12.61)
CIE-LCHlch(18.14, 33.00, 337.54°)
OKLaboklab(30.7% 0.0903 -0.034)
OKLCHoklch(30.7% 0.097 339.4)
XYZxyz(4.2643, 2.5498, 4.9692)
Luminance0.0255 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D173F #174D25
analogous
#40174D #4D173F #4D1724
triadic
#4D173F #3F4D17 #173F4D
tetradic
#4D173F #4D4017 #174D25 #17244D
square
#4D173F #4D4017 #174D25 #17244D
split-complementary
#4D173F #244D17 #174D40
monochromatic
#180713 #1E0918 #4D173F #7C2566 #AB338C

Accessibility & contrast

On white

13.91
#4D173F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#4D173F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D173F
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D173F#FFFFFF#000000##FFFFFF
##4D173F1.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2740
Deuteranopia (green-blind)
#2A2F3E
Tritanopia (blue-blind)
#521928
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4d173f;
/* rgb */ color: rgb(77, 23, 63);
/* oklch */ color: oklch(30.7% 0.097 339.4);
Tailwind
colors: {
  custom: {
    50: '#815874',
    500: '#4d173f',
    950: '#000000',
  },
}
SCSS
$custom: #4d173f;
$custom-light: #815874;
$custom-dark: #000000;
JSON
{
  "hex": "#4d173f",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 63
  },
  "hsl": {
    "h": 315.556,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.30698,
    "c": 0.0965,
    "h": 339.4
  },
  "luminance": 0.02549
}

Semantic roles & 50–950 ramp

primary
#4D173F
secondary
#3C844E
accent
#DD714A
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0A0308
muted
#7C787B

Preview Lab

Preview with #4D173F

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

Preview Lab → · Contrast checker → · Palette generator →

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