#7E1240#7E1240

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

Color values

HEX#7E1240
RGBrgb(126, 18, 64)
HSLhsl(334, 75%, 28%)
HSVhsv(334, 86%, 49%)
CMYKcmyk(0%, 85.7%, 49.2%, 50.6%)
CIE-LABlab(27.41, 46.93, 1.60)
CIE-LCHlch(27.41, 46.96, 1.95°)
OKLaboklab(39.31% 0.1442 0.0046)
OKLCHoklch(39.31% 0.144 1.8)
XYZxyz(9.7467, 5.2398, 5.3476)
Luminance0.0524 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1240 #127E50
analogous
#7E1276 #7E1240 #7E1A12
triadic
#7E1240 #407E12 #12407E
tetradic
#7E1240 #767E12 #127E50 #1A127E
square
#7E1240 #767E12 #127E50 #1A127E
split-complementary
#7E1240 #127E1A #12767E
monochromatic
#1B040E #480A25 #7E1240 #B41A5B #E12A78

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E1240#FFFFFF#000000##FFFFFF
##7E12401.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)
#2E3441
Deuteranopia (green-blind)
#4B483E
Tritanopia (blue-blind)
#8A0027
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7e1240;
/* rgb */ color: rgb(126, 18, 64);
/* oklch */ color: oklch(39.3% 0.144 1.8);
Tailwind
colors: {
  custom: {
    50: '#a95e74',
    500: '#7e1240',
    950: '#000000',
  },
}
SCSS
$custom: #7e1240;
$custom-light: #a95e74;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1240",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 64
  },
  "hsl": {
    "h": 334.444,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.39311,
    "c": 0.14427,
    "h": 1.8
  },
  "luminance": 0.05238
}

Semantic roles & 50–950 ramp

primary
#7E1240
secondary
#38B47F
accent
#F2A236
background
#FBF5F7
surface
#F6EAED
border
#D0C6C8
text
#110508
muted
#80797B

Preview Lab

Preview with #7E1240

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

Preview Lab → · Contrast checker → · Palette generator →

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