#7E2742#7E2742

#7E2742 is a dark, vivid pink. Relative luminance 0.063; OKLCH L 41.3% C 0.122 H 5.2°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#7E2742
RGBrgb(126, 39, 66)
HSLhsl(341, 53%, 32%)
HSVhsv(341, 69%, 49%)
CMYKcmyk(0%, 69%, 47.6%, 50.6%)
CIE-LABlab(30.11, 39.73, 4.15)
CIE-LCHlch(30.11, 39.95, 5.97°)
OKLaboklab(41.32% 0.1212 0.0111)
OKLCHoklch(41.32% 0.122 5.2)
XYZxyz(10.3139, 6.2813, 5.8225)
Luminance0.0628 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2742 #277E63
analogous
#7E276E #7E2742 #7E3727
triadic
#7E2742 #427E27 #27427E
tetradic
#7E2742 #6E7E27 #277E63 #37277E
square
#7E2742 #6E7E27 #277E63 #37277E
split-complementary
#7E2742 #277E37 #276E7E
monochromatic
#210A11 #4F192A #7E2742 #AD355A #CA5579

Accessibility & contrast

On white

9.31
#7E2742 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7E2742 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2742
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2742#FFFFFF#000000##FFFFFF
##7E27421.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A3C43
Deuteranopia (green-blind)
#514D40
Tritanopia (blue-blind)
#891A32
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e2742;
/* rgb */ color: rgb(126, 39, 66);
/* oklch */ color: oklch(41.3% 0.122 5.2);
Tailwind
colors: {
  custom: {
    50: '#a86776',
    500: '#7e2742',
    950: '#000000',
  },
}
SCSS
$custom: #7e2742;
$custom-light: #a86776;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2742",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 66
  },
  "hsl": {
    "h": 341.379,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.41324,
    "c": 0.12174,
    "h": 5.2
  },
  "luminance": 0.0628
}

Semantic roles & 50–950 ramp

primary
#7E2742
secondary
#52AF92
accent
#DCAF4C
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100608
muted
#7F7A7B

Preview Lab

Preview with #7E2742

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

Preview Lab → · Contrast checker → · Palette generator →

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