#7E1A42#7E1A42

#7E1A42 is a dark, vivid pink. Relative luminance 0.056; OKLCH L 40.0% C 0.137 H 1.9°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#7E1A42
RGBrgb(126, 26, 66)
HSLhsl(336, 66%, 30%)
HSVhsv(336, 79%, 49%)
CMYKcmyk(0%, 79.4%, 47.6%, 50.6%)
CIE-LABlab(28.30, 44.77, 1.54)
CIE-LCHlch(28.30, 44.80, 1.97°)
OKLaboklab(39.98% 0.1374 0.0045)
OKLCHoklch(39.98% 0.137 1.9)
XYZxyz(9.9578, 5.5691, 5.7038)
Luminance0.0557 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1A42 #1A7E56
analogous
#7E1A74 #7E1A42 #7E241A
triadic
#7E1A42 #427E1A #1A427E
tetradic
#7E1A42 #747E1A #1A7E56 #241A7E
square
#7E1A42 #747E1A #1A7E56 #241A7E
split-complementary
#7E1A42 #1A7E24 #1A747E
monochromatic
#19050D #4B1027 #7E1A42 #B1245D #D73C7A

Accessibility & contrast

On white

9.94
#7E1A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#7E1A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1A42
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1A42#FFFFFF#000000##FFFFFF
##7E1A421.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#323643
Deuteranopia (green-blind)
#4C4A40
Tritanopia (blue-blind)
#89042C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e1a42;
/* rgb */ color: rgb(126, 26, 66);
/* oklch */ color: oklch(40.0% 0.137 1.9);
Tailwind
colors: {
  custom: {
    50: '#a86176',
    500: '#7e1a42',
    950: '#000000',
  },
}
SCSS
$custom: #7e1a42;
$custom-light: #a86176;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1a42",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 66
  },
  "hsl": {
    "h": 336,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.39984,
    "c": 0.13742,
    "h": 1.9
  },
  "luminance": 0.05568
}

Semantic roles & 50–950 ramp

primary
#7E1A42
secondary
#42B285
accent
#E9A53F
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100508
muted
#7F7A7B

Preview Lab

Preview with #7E1A42

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

Preview Lab → · Contrast checker → · Palette generator →

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