#7E1242#7E1242

#7E1242 is a dark, vivid pink. Relative luminance 0.053; OKLCH L 39.4% C 0.145 H 0.5°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#7E1242
RGBrgb(126, 18, 66)
HSLhsl(333, 75%, 28%)
HSVhsv(333, 86%, 49%)
CMYKcmyk(0%, 85.7%, 47.6%, 50.6%)
CIE-LABlab(27.47, 47.12, 0.34)
CIE-LCHlch(27.47, 47.12, 0.41°)
OKLaboklab(39.38% 0.1449 0.0014)
OKLCHoklch(39.38% 0.145 0.5)
XYZxyz(9.8047, 5.2629, 5.6528)
Luminance0.0526 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1242 #127E4E
analogous
#7E1278 #7E1242 #7E1812
triadic
#7E1242 #427E12 #12427E
tetradic
#7E1242 #787E12 #127E4E #18127E
square
#7E1242 #787E12 #127E4E #18127E
split-complementary
#7E1242 #127E18 #12787E
monochromatic
#1B040E #480A26 #7E1242 #B41A5E #E12A7B

Accessibility & contrast

On white

10.23
#7E1242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1242
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1242#FFFFFF#000000##FFFFFF
##7E12421.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E3443
Deuteranopia (green-blind)
#4B4840
Tritanopia (blue-blind)
#890029
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7e1242;
/* rgb */ color: rgb(126, 18, 66);
/* oklch */ color: oklch(39.4% 0.145 0.5);
Tailwind
colors: {
  custom: {
    50: '#a95e76',
    500: '#7e1242',
    950: '#000000',
  },
}
SCSS
$custom: #7e1242;
$custom-light: #a95e76;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1242",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 66
  },
  "hsl": {
    "h": 333.333,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.39378,
    "c": 0.14493,
    "h": 0.5
  },
  "luminance": 0.05262
}

Semantic roles & 50–950 ramp

primary
#7E1242
secondary
#38B47D
accent
#F29E36
background
#FAF5F7
surface
#F5EAED
border
#CFC6C8
text
#110508
muted
#80797B

Preview Lab

Preview with #7E1242

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

Preview Lab → · Contrast checker → · Palette generator →

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