#7E2751#7E2751

#7E2751 is a dark, vivid pink. Relative luminance 0.065; OKLCH L 41.8% C 0.127 H 354.3°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#7E2751
RGBrgb(126, 39, 81)
HSLhsl(331, 53%, 32%)
HSVhsv(331, 69%, 49%)
CMYKcmyk(0%, 69%, 35.7%, 50.6%)
CIE-LABlab(30.60, 41.44, -5.02)
CIE-LCHlch(30.60, 41.74, 353.10°)
OKLaboklab(41.84% 0.1267 -0.0127)
OKLCHoklch(41.84% 0.127 354.3)
XYZxyz(10.8155, 6.4820, 8.4646)
Luminance0.0648 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2751 #277E54
analogous
#7E277D #7E2751 #7E2827
triadic
#7E2751 #517E27 #27517E
tetradic
#7E2751 #7D7E27 #277E54 #28277E
square
#7E2751 #7D7E27 #277E54 #28277E
split-complementary
#7E2751 #277E28 #277D7E
monochromatic
#210A15 #4F1933 #7E2751 #AD356F #CA558E

Accessibility & contrast

On white

9.15
#7E2751 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7E2751 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2751
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2751#FFFFFF#000000##FFFFFF
##7E27511.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#363E52
Deuteranopia (green-blind)
#4E4E4F
Tritanopia (blue-blind)
#882038
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e2751;
/* rgb */ color: rgb(126, 39, 81);
/* oklch */ color: oklch(41.8% 0.127 354.3);
Tailwind
colors: {
  custom: {
    50: '#a76881',
    500: '#7e2751',
    950: '#000000',
  },
}
SCSS
$custom: #7e2751;
$custom-light: #a76881;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2751",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 81
  },
  "hsl": {
    "h": 331.034,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.41843,
    "c": 0.12731,
    "h": 354.3
  },
  "luminance": 0.06481
}

Semantic roles & 50–950 ramp

primary
#7E2751
secondary
#52AF82
accent
#DC964C
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10060A
muted
#7F7A7C

Preview Lab

Preview with #7E2751

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

Preview Lab → · Contrast checker → · Palette generator →

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