#7E1B4A#7E1B4A

#7E1B4A is a dark, vivid pink. Relative luminance 0.057; OKLCH L 40.4% C 0.139 H 356.7°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#7E1B4A
RGBrgb(126, 27, 74)
HSLhsl(332, 65%, 30%)
HSVhsv(332, 79%, 49%)
CMYKcmyk(0%, 78.6%, 41.3%, 50.6%)
CIE-LABlab(28.68, 45.27, -3.24)
CIE-LCHlch(28.68, 45.38, 355.91°)
OKLaboklab(40.35% 0.1391 -0.0079)
OKLCHoklch(40.35% 0.139 356.7)
XYZxyz(10.2329, 5.7152, 7.0415)
Luminance0.0571 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B4A #1B7E4F
analogous
#7E1B7C #7E1B4A #7E1D1B
triadic
#7E1B4A #4A7E1B #1B4A7E
tetradic
#7E1B4A #7C7E1B #1B7E4F #1D1B7E
square
#7E1B4A #7C7E1B #1B7E4F #1D1B7E
split-complementary
#7E1B4A #1B7E1D #1B7C7E
monochromatic
#19050F #4C102C #7E1B4A #B02668 #D63E86

Accessibility & contrast

On white

9.80
#7E1B4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#7E1B4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1B4A
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B4A#FFFFFF#000000##FFFFFF
##7E1B4A1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30384B
Deuteranopia (green-blind)
#4B4A48
Tritanopia (blue-blind)
#890D30
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e1b4a;
/* rgb */ color: rgb(126, 27, 74);
/* oklch */ color: oklch(40.4% 0.139 356.7);
Tailwind
colors: {
  custom: {
    50: '#a8627c',
    500: '#7e1b4a',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b4a;
$custom-light: #a8627c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b4a",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 74
  },
  "hsl": {
    "h": 331.515,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.40353,
    "c": 0.13931,
    "h": 356.7
  },
  "luminance": 0.05714
}

Semantic roles & 50–950 ramp

primary
#7E1B4A
secondary
#43B27D
accent
#E89840
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#100609
muted
#7F7A7B

Preview Lab

Preview with #7E1B4A

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

Preview Lab → · Contrast checker → · Palette generator →

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