#7E1B4D#7E1B4D

#7E1B4D is a dark, vivid pink. Relative luminance 0.058; OKLCH L 40.5% C 0.141 H 354.8°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#7E1B4D
RGBrgb(126, 27, 77)
HSLhsl(330, 65%, 30%)
HSVhsv(330, 79%, 49%)
CMYKcmyk(0%, 78.6%, 38.9%, 50.6%)
CIE-LABlab(28.79, 45.60, -5.07)
CIE-LCHlch(28.79, 45.88, 353.65°)
OKLaboklab(40.47% 0.14 -0.0128)
OKLCHoklch(40.47% 0.141 354.8)
XYZxyz(10.3364, 5.7566, 7.5866)
Luminance0.0575 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B4D #1B7E4C
analogous
#7E1B7E #7E1B4D #7E1B1B
triadic
#7E1B4D #4D7E1B #1B4D7E
tetradic
#7E1B4D #7E7E1B #1B7E4C #1B1B7E
square
#7E1B4D #7E7E1B #1B7E4C #1B1B7E
split-complementary
#7E1B4D #1B7E1B #1B7E7E
monochromatic
#19050F #4C102E #7E1B4D #B0266C #D63E8A

Accessibility & contrast

On white

9.76
#7E1B4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#7E1B4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1B4D
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B4D#FFFFFF#000000##FFFFFF
##7E1B4D1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F384E
Deuteranopia (green-blind)
#4A4A4B
Tritanopia (blue-blind)
#880F31
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e1b4d;
/* rgb */ color: rgb(126, 27, 77);
/* oklch */ color: oklch(40.5% 0.141 354.8);
Tailwind
colors: {
  custom: {
    50: '#a8627e',
    500: '#7e1b4d',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b4d;
$custom-light: #a8627e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b4d",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 77
  },
  "hsl": {
    "h": 329.697,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.40467,
    "c": 0.14063,
    "h": 354.8
  },
  "luminance": 0.05755
}

Semantic roles & 50–950 ramp

primary
#7E1B4D
secondary
#43B27A
accent
#E89340
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10060A
muted
#7F7A7C

Preview Lab

Preview with #7E1B4D

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

Preview Lab → · Contrast checker → · Palette generator →

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