#7E1142#7E1142

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

Color values

HEX#7E1142
RGBrgb(126, 17, 66)
HSLhsl(333, 76%, 28%)
HSVhsv(333, 87%, 49%)
CMYKcmyk(0%, 86.5%, 47.6%, 50.6%)
CIE-LABlab(27.38, 47.37, 0.21)
CIE-LCHlch(27.38, 47.37, 0.26°)
OKLaboklab(39.31% 0.1457 0.0011)
OKLCHoklch(39.31% 0.146 0.4)
XYZxyz(9.7888, 5.2312, 5.6475)
Luminance0.0523 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1142 #117E4D
analogous
#7E1178 #7E1142 #7E1711
triadic
#7E1142 #427E11 #11427E
tetradic
#7E1142 #787E11 #117E4D #17117E
square
#7E1142 #787E11 #117E4D #17117E
split-complementary
#7E1142 #117E17 #11787E
monochromatic
#1B040E #480A26 #7E1142 #B4185E #E2277B

Accessibility & contrast

On white

10.26
#7E1142 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#7E1142 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1142
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1142#FFFFFF#000000##FFFFFF
##7E11421.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1142;
/* rgb */ color: rgb(126, 17, 66);
/* oklch */ color: oklch(39.3% 0.146 0.4);
Tailwind
colors: {
  custom: {
    50: '#a95e76',
    500: '#7e1142',
    950: '#000000',
  },
}
SCSS
$custom: #7e1142;
$custom-light: #a95e76;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1142",
  "rgb": {
    "r": 126,
    "g": 17,
    "b": 66
  },
  "hsl": {
    "h": 333.028,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.39314,
    "c": 0.14573,
    "h": 0.4
  },
  "luminance": 0.0523
}

Semantic roles & 50–950 ramp

primary
#7E1142
secondary
#37B47C
accent
#F39D35
background
#FAF5F7
surface
#F5EAED
border
#CFC6C8
text
#110508
muted
#80797B

Preview Lab

Preview with #7E1142

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

Preview Lab → · Contrast checker → · Palette generator →

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