#7D1F4D#7D1F4D

#7D1F4D is a dark, vivid pink. Relative luminance 0.059; OKLCH L 40.7% C 0.135 H 355.0°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#7D1F4D
RGBrgb(125, 31, 77)
HSLhsl(331, 60%, 31%)
HSVhsv(331, 75%, 49%)
CMYKcmyk(0%, 75.2%, 38.4%, 51%)
CIE-LABlab(29.10, 43.89, -4.63)
CIE-LCHlch(29.10, 44.13, 353.97°)
OKLaboklab(40.66% 0.1346 -0.0117)
OKLCHoklch(40.66% 0.135 355)
XYZxyz(10.2876, 5.8770, 7.6124)
Luminance0.0588 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F4D #1F7D4F
analogous
#7D1F7C #7D1F4D #7D201F
triadic
#7D1F4D #4D7D1F #1F4D7D
tetradic
#7D1F4D #7C7D1F #1F7D4F #201F7D
square
#7D1F4D #7C7D1F #1F7D4F #201F7D
split-complementary
#7D1F4D #1F7D20 #1F7C7D
monochromatic
#1B0711 #4C132F #7D1F4D #AE2B6B #D1458A

Accessibility & contrast

On white

9.65
#7D1F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#7D1F4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1F4D
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F4D#FFFFFF#000000##FFFFFF
##7D1F4D1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#313A4E
Deuteranopia (green-blind)
#4B4B4B
Tritanopia (blue-blind)
#871533
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7d1f4d;
/* rgb */ color: rgb(125, 31, 77);
/* oklch */ color: oklch(40.7% 0.135 355.0);
Tailwind
colors: {
  custom: {
    50: '#a7647e',
    500: '#7d1f4d',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f4d;
$custom-light: #a7647e;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f4d",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 77
  },
  "hsl": {
    "h": 330.638,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.40658,
    "c": 0.1351,
    "h": 355
  },
  "luminance": 0.05876
}

Semantic roles & 50–950 ramp

primary
#7D1F4D
secondary
#48B07D
accent
#E39644
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10060A
muted
#7F7A7C

Preview Lab

Preview with #7D1F4D

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

Preview Lab → · Contrast checker → · Palette generator →

#7D1F4D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva