#7E2A52#7E2A52

#7E2A52 is a dark, vivid pink. Relative luminance 0.067; OKLCH L 42.2% C 0.123 H 354.2°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#7E2A52
RGBrgb(126, 42, 82)
HSLhsl(331, 50%, 33%)
HSVhsv(331, 67%, 49%)
CMYKcmyk(0%, 66.7%, 34.9%, 50.6%)
CIE-LABlab(31.12, 40.24, -4.90)
CIE-LCHlch(31.12, 40.53, 353.06°)
OKLaboklab(42.24% 0.1228 -0.0124)
OKLCHoklch(42.24% 0.123 354.2)
XYZxyz(10.9557, 6.7019, 8.6977)
Luminance0.0670 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A52 #2A7E56
analogous
#7E2A7C #7E2A52 #7E2C2A
triadic
#7E2A52 #527E2A #2A527E
tetradic
#7E2A52 #7C7E2A #2A7E56 #2C2A7E
square
#7E2A52 #7C7E2A #2A7E56 #2C2A7E
split-complementary
#7E2A52 #2A7E2C #2A7C7E
monochromatic
#220B16 #501B34 #7E2A52 #AC3970 #C85A8F

Accessibility & contrast

On white

8.97
#7E2A52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7E2A52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A52
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A52#FFFFFF#000000##FFFFFF
##7E2A521.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373F53
Deuteranopia (green-blind)
#4F4F50
Tritanopia (blue-blind)
#88243A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e2a52;
/* rgb */ color: rgb(126, 42, 82);
/* oklch */ color: oklch(42.2% 0.123 354.2);
Tailwind
colors: {
  custom: {
    50: '#a76982',
    500: '#7e2a52',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a52;
$custom-light: #a76982;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a52",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 82
  },
  "hsl": {
    "h": 331.429,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.42239,
    "c": 0.12346,
    "h": 354.2
  },
  "luminance": 0.06701
}

Semantic roles & 50–950 ramp

primary
#7E2A52
secondary
#56AE84
accent
#DA974E
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10070A
muted
#7F7A7C

Preview Lab

Preview with #7E2A52

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

Preview Lab → · Contrast checker → · Palette generator →

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