#7E2F56#7E2F56

#7E2F56 is a dark, moderate pink. Relative luminance 0.071; OKLCH L 43.0% C 0.118 H 352.5°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#7E2F56
RGBrgb(126, 47, 86)
HSLhsl(330, 46%, 34%)
HSVhsv(330, 63%, 49%)
CMYKcmyk(0%, 62.7%, 31.7%, 50.6%)
CIE-LABlab(32.13, 38.42, -5.99)
CIE-LCHlch(32.13, 38.88, 351.13°)
OKLaboklab(43.03% 0.1168 -0.0154)
OKLCHoklch(43.03% 0.118 352.5)
XYZxyz(11.3009, 7.1417, 9.5856)
Luminance0.0714 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2F56 #2F7E57
analogous
#7E2F7E #7E2F56 #7E302F
triadic
#7E2F56 #567E2F #2F567E
tetradic
#7E2F56 #7E7E2F #2F7E57 #302F7E
square
#7E2F56 #7E7E2F #2F7E57 #302F7E
split-complementary
#7E2F56 #2F7E30 #2F7E7E
monochromatic
#250E19 #511E38 #7E2F56 #AB4074 #C56393

Accessibility & contrast

On white

8.65
#7E2F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7E2F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2F56
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2F56#FFFFFF#000000##FFFFFF
##7E2F561.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A4357
Deuteranopia (green-blind)
#505154
Tritanopia (blue-blind)
#872B3E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e2f56;
/* rgb */ color: rgb(126, 47, 86);
/* oklch */ color: oklch(43.0% 0.118 352.5);
Tailwind
colors: {
  custom: {
    50: '#a66c85',
    500: '#7e2f56',
    950: '#000000',
  },
}
SCSS
$custom: #7e2f56;
$custom-light: #a66c85;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2f56",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 86
  },
  "hsl": {
    "h": 330.38,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.43034,
    "c": 0.11784,
    "h": 352.5
  },
  "luminance": 0.07141
}

Semantic roles & 50–950 ramp

primary
#7E2F56
secondary
#5DAC85
accent
#D59552
background
#FAF6F8
surface
#F4ECEF
border
#CEC7CA
text
#10070B
muted
#7F7A7C

Preview Lab

Preview with #7E2F56

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

Preview Lab → · Contrast checker → · Palette generator →

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