#7E1C4D#7E1C4D

#7E1C4D is a dark, vivid pink. Relative luminance 0.058; OKLCH L 40.6% C 0.140 H 354.9°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#7E1C4D
RGBrgb(126, 28, 77)
HSLhsl(330, 64%, 30%)
HSVhsv(330, 78%, 49%)
CMYKcmyk(0%, 77.8%, 38.9%, 50.6%)
CIE-LABlab(28.91, 45.26, -4.89)
CIE-LCHlch(28.91, 45.52, 353.83°)
OKLaboklab(40.56% 0.139 -0.0123)
OKLCHoklch(40.56% 0.14 354.9)
XYZxyz(10.3597, 5.8032, 7.5943)
Luminance0.0580 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1C4D #1C7E4D
analogous
#7E1C7E #7E1C4D #7E1C1C
triadic
#7E1C4D #4D7E1C #1C4D7E
tetradic
#7E1C4D #7E7E1C #1C7E4D #1C1C7E
square
#7E1C4D #7E7E1C #1C7E4D #1C1C7E
split-complementary
#7E1C4D #1C7E1C #1C7E7E
monochromatic
#1A0610 #4C112E #7E1C4D #B0276C #D5408A

Accessibility & contrast

On white

9.72
#7E1C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#7E1C4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1C4D
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1C4D#FFFFFF#000000##FFFFFF
##7E1C4D1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F394E
Deuteranopia (green-blind)
#4B4B4B
Tritanopia (blue-blind)
#881132
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e1c4d;
/* rgb */ color: rgb(126, 28, 77);
/* oklch */ color: oklch(40.6% 0.140 354.9);
Tailwind
colors: {
  custom: {
    50: '#a8627e',
    500: '#7e1c4d',
    950: '#000000',
  },
}
SCSS
$custom: #7e1c4d;
$custom-light: #a8627e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1c4d",
  "rgb": {
    "r": 126,
    "g": 28,
    "b": 77
  },
  "hsl": {
    "h": 330,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.40555,
    "c": 0.13951,
    "h": 354.9
  },
  "luminance": 0.05802
}

Semantic roles & 50–950 ramp

primary
#7E1C4D
secondary
#44B27B
accent
#E79441
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10060A
muted
#7F7A7C

Preview Lab

Preview with #7E1C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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