#7E2A56#7E2A56

#7E2A56 is a dark, vivid pink. Relative luminance 0.068; OKLCH L 42.4% C 0.126 H 351.4°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#7E2A56
RGBrgb(126, 42, 86)
HSLhsl(329, 50%, 33%)
HSVhsv(329, 67%, 49%)
CMYKcmyk(0%, 66.7%, 31.7%, 50.6%)
CIE-LABlab(31.26, 40.76, -7.29)
CIE-LCHlch(31.26, 41.41, 349.87°)
OKLaboklab(42.4% 0.1241 -0.0189)
OKLCHoklch(42.4% 0.126 351.4)
XYZxyz(11.1124, 6.7646, 9.5228)
Luminance0.0676 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A56 #2A7E52
analogous
#7C2A7E #7E2A56 #7E2A2C
triadic
#7E2A56 #567E2A #2A567E
tetradic
#7E2A56 #7E7C2A #2A7E52 #2A2C7E
square
#7E2A56 #7E7C2A #2A7E52 #2A2C7E
split-complementary
#7E2A56 #2C7E2A #2A7E7C
monochromatic
#220B17 #501B37 #7E2A56 #AC3975 #C85A94

Accessibility & contrast

On white

8.93
#7E2A56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7E2A56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A56
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A56#FFFFFF#000000##FFFFFF
##7E2A561.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364057
Deuteranopia (green-blind)
#4E4F54
Tritanopia (blue-blind)
#87253C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e2a56;
/* rgb */ color: rgb(126, 42, 86);
/* oklch */ color: oklch(42.4% 0.126 351.4);
Tailwind
colors: {
  custom: {
    50: '#a76985',
    500: '#7e2a56',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a56;
$custom-light: #a76985;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a56",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 86
  },
  "hsl": {
    "h": 328.571,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.42396,
    "c": 0.12552,
    "h": 351.4
  },
  "luminance": 0.06763
}

Semantic roles & 50–950 ramp

primary
#7E2A56
secondary
#56AE80
accent
#DA914E
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10070B
muted
#7F7A7C

Preview Lab

Preview with #7E2A56

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

Preview Lab → · Contrast checker → · Palette generator →

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