#7E1F4D#7E1F4D

#7E1F4D is a dark, vivid pink. Relative luminance 0.060; OKLCH L 40.8% C 0.136 H 355.4°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#7E1F4D
RGBrgb(126, 31, 77)
HSLhsl(331, 61%, 31%)
HSVhsv(331, 75%, 49%)
CMYKcmyk(0%, 75.4%, 38.9%, 50.6%)
CIE-LABlab(29.29, 44.18, -4.33)
CIE-LCHlch(29.29, 44.40, 354.41°)
OKLaboklab(40.84% 0.1356 -0.0108)
OKLCHoklch(40.84% 0.136 355.4)
XYZxyz(10.4344, 5.9527, 7.6192)
Luminance0.0595 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F4D #1F7E50
analogous
#7E1F7C #7E1F4D #7E201F
triadic
#7E1F4D #4D7E1F #1F4D7E
tetradic
#7E1F4D #7C7E1F #1F7E50 #201F7E
square
#7E1F4D #7C7E1F #1F7E50 #201F7E
split-complementary
#7E1F4D #1F7E20 #1F7C7E
monochromatic
#1C0711 #4D132F #7E1F4D #AF2B6B #D14689

Accessibility & contrast

On white

9.59
#7E1F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#7E1F4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F4D
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F4D#FFFFFF#000000##FFFFFF
##7E1F4D1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1f4d;
/* rgb */ color: rgb(126, 31, 77);
/* oklch */ color: oklch(40.8% 0.136 355.4);
Tailwind
colors: {
  custom: {
    50: '#a7647e',
    500: '#7e1f4d',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f4d;
$custom-light: #a7647e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f4d",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 77
  },
  "hsl": {
    "h": 330.947,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40836,
    "c": 0.13598,
    "h": 355.4
  },
  "luminance": 0.05951
}

Semantic roles & 50–950 ramp

primary
#7E1F4D
secondary
#48B17E
accent
#E49644
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10060A
muted
#7F7A7C

Preview Lab

Preview with #7E1F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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