#7E2A4E#7E2A4E

#7E2A4E is a dark, vivid pink. Relative luminance 0.066; OKLCH L 42.1% C 0.122 H 357.2°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#7E2A4E
RGBrgb(126, 42, 78)
HSLhsl(334, 50%, 33%)
HSVhsv(334, 67%, 49%)
CMYKcmyk(0%, 66.7%, 38.1%, 50.6%)
CIE-LABlab(30.98, 39.74, -2.49)
CIE-LCHlch(30.98, 39.82, 356.42°)
OKLaboklab(42.09% 0.1215 -0.006)
OKLCHoklch(42.09% 0.122 357.2)
XYZxyz(10.8079, 6.6428, 7.9193)
Luminance0.0664 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A4E #2A7E5A
analogous
#7E2A78 #7E2A4E #7E302A
triadic
#7E2A4E #4E7E2A #2A4E7E
tetradic
#7E2A4E #787E2A #2A7E5A #302A7E
square
#7E2A4E #787E2A #2A7E5A #302A7E
split-complementary
#7E2A4E #2A7E30 #2A787E
monochromatic
#220B15 #501B32 #7E2A4E #AC396A #C85A89

Accessibility & contrast

On white

9.02
#7E2A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7E2A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A4E
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A4E#FFFFFF#000000##FFFFFF
##7E2A4E1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#393F4F
Deuteranopia (green-blind)
#4F4F4C
Tritanopia (blue-blind)
#882338
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e2a4e;
/* rgb */ color: rgb(126, 42, 78);
/* oklch */ color: oklch(42.1% 0.122 357.2);
Tailwind
colors: {
  custom: {
    50: '#a7697f',
    500: '#7e2a4e',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a4e;
$custom-light: #a7697f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a4e",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 78
  },
  "hsl": {
    "h": 334.286,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.42091,
    "c": 0.12162,
    "h": 357.2
  },
  "luminance": 0.06642
}

Semantic roles & 50–950 ramp

primary
#7E2A4E
secondary
#56AE88
accent
#DA9E4E
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10070A
muted
#7F7A7C

Preview Lab

Preview with #7E2A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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