#7E1042#7E1042

#7E1042 is a dark, vivid pink. Relative luminance 0.052; OKLCH L 39.3% C 0.147 H 0.3°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#7E1042
RGBrgb(126, 16, 66)
HSLhsl(333, 77%, 28%)
HSVhsv(333, 87%, 49%)
CMYKcmyk(0%, 87.3%, 47.6%, 50.6%)
CIE-LABlab(27.30, 47.61, 0.09)
CIE-LCHlch(27.30, 47.61, 0.11°)
OKLaboklab(39.25% 0.1465 0.0008)
OKLCHoklch(39.25% 0.147 0.3)
XYZxyz(9.7737, 5.2009, 5.6424)
Luminance0.0520 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1042 #107E4C
analogous
#7E1079 #7E1042 #7E1510
triadic
#7E1042 #427E10 #10427E
tetradic
#7E1042 #797E10 #107E4C #15107E
square
#7E1042 #797E10 #107E4C #15107E
split-complementary
#7E1042 #107E15 #10797E
monochromatic
#1B030E #480926 #7E1042 #B4175E #E3257C

Accessibility & contrast

On white

10.29
#7E1042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#7E1042 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1042
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1042#FFFFFF#000000##FFFFFF
##7E10421.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D3343
Deuteranopia (green-blind)
#4A4840
Tritanopia (blue-blind)
#890028
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7e1042;
/* rgb */ color: rgb(126, 16, 66);
/* oklch */ color: oklch(39.3% 0.147 0.3);
Tailwind
colors: {
  custom: {
    50: '#a95e76',
    500: '#7e1042',
    950: '#000000',
  },
}
SCSS
$custom: #7e1042;
$custom-light: #a95e76;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1042",
  "rgb": {
    "r": 126,
    "g": 16,
    "b": 66
  },
  "hsl": {
    "h": 332.727,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.39253,
    "c": 0.14651,
    "h": 0.3
  },
  "luminance": 0.052
}

Semantic roles & 50–950 ramp

primary
#7E1042
secondary
#36B47B
accent
#F49D34
background
#FAF5F7
surface
#F5EAED
border
#CFC6C8
text
#110508
muted
#80797B

Preview Lab

Preview with #7E1042

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

Preview Lab → · Contrast checker → · Palette generator →

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