#7E2F52#7E2F52

#7E2F52 is a dark, moderate pink. Relative luminance 0.071; OKLCH L 42.9% C 0.116 H 355.5°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#7E2F52
RGBrgb(126, 47, 82)
HSLhsl(333, 46%, 34%)
HSVhsv(333, 63%, 49%)
CMYKcmyk(0%, 62.7%, 34.9%, 50.6%)
CIE-LABlab(31.99, 37.89, -3.61)
CIE-LCHlch(31.99, 38.06, 354.56°)
OKLaboklab(42.88% 0.1155 -0.009)
OKLCHoklch(42.88% 0.116 355.5)
XYZxyz(11.1443, 7.0790, 8.7605)
Luminance0.0708 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2F52 #2F7E5B
analogous
#7E2F7A #7E2F52 #7E342F
triadic
#7E2F52 #527E2F #2F527E
tetradic
#7E2F52 #7A7E2F #2F7E5B #342F7E
square
#7E2F52 #7A7E2F #2F7E5B #342F7E
split-complementary
#7E2F52 #2F7E34 #2F7A7E
monochromatic
#250E18 #511E35 #7E2F52 #AB406F #C5638E

Accessibility & contrast

On white

8.69
#7E2F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7E2F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2F52
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2F52#FFFFFF#000000##FFFFFF
##7E2F521.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B4253
Deuteranopia (green-blind)
#515150
Tritanopia (blue-blind)
#88293D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e2f52;
/* rgb */ color: rgb(126, 47, 82);
/* oklch */ color: oklch(42.9% 0.116 355.5);
Tailwind
colors: {
  custom: {
    50: '#a66c82',
    500: '#7e2f52',
    950: '#000000',
  },
}
SCSS
$custom: #7e2f52;
$custom-light: #a66c82;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2f52",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 82
  },
  "hsl": {
    "h": 333.418,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.42883,
    "c": 0.11584,
    "h": 355.5
  },
  "luminance": 0.07078
}

Semantic roles & 50–950 ramp

primary
#7E2F52
secondary
#5DAC89
accent
#D59B52
background
#FAF6F7
surface
#F4ECEE
border
#CEC7C9
text
#10070A
muted
#7F7A7C

Preview Lab

Preview with #7E2F52

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

Preview Lab → · Contrast checker → · Palette generator →

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