#7D1F4E#7D1F4E

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

Color values

HEX#7D1F4E
RGBrgb(125, 31, 78)
HSLhsl(330, 60%, 31%)
HSVhsv(330, 75%, 49%)
CMYKcmyk(0%, 75.2%, 37.6%, 51%)
CIE-LABlab(29.14, 44.01, -5.24)
CIE-LCHlch(29.14, 44.32, 353.21°)
OKLaboklab(40.7% 0.1349 -0.0133)
OKLCHoklch(40.7% 0.136 354.4)
XYZxyz(10.3232, 5.8912, 7.7997)
Luminance0.0589 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F4E #1F7D4E
analogous
#7D1F7D #7D1F4E #7D1F1F
triadic
#7D1F4E #4E7D1F #1F4E7D
tetradic
#7D1F4E #7D7D1F #1F7D4E #1F1F7D
square
#7D1F4E #7D7D1F #1F7D4E #1F1F7D
split-complementary
#7D1F4E #1F7D1F #1F7D7D
monochromatic
#1B0711 #4C132F #7D1F4E #AE2B6D #D1458B

Accessibility & contrast

On white

9.64
#7D1F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D1F4E
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F4E#FFFFFF#000000##FFFFFF
##7D1F4E1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#303A4F
Deuteranopia (green-blind)
#4B4B4C
Tritanopia (blue-blind)
#871633
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7d1f4e;
/* rgb */ color: rgb(125, 31, 78);
/* oklch */ color: oklch(40.7% 0.136 354.4);
Tailwind
colors: {
  custom: {
    50: '#a7647f',
    500: '#7d1f4e',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f4e;
$custom-light: #a7647f;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f4e",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 78
  },
  "hsl": {
    "h": 330,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.40697,
    "c": 0.13557,
    "h": 354.4
  },
  "luminance": 0.0589
}

Semantic roles & 50–950 ramp

primary
#7D1F4E
secondary
#48B07C
accent
#E39444
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10060A
muted
#7F7A7C

Preview Lab

Preview with #7D1F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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