#7E1D42#7E1D42

#7E1D42 is a dark, vivid pink. Relative luminance 0.057; OKLCH L 40.3% C 0.134 H 2.5°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#7E1D42
RGBrgb(126, 29, 66)
HSLhsl(337, 63%, 30%)
HSVhsv(337, 77%, 49%)
CMYKcmyk(0%, 77%, 47.6%, 50.6%)
CIE-LABlab(28.67, 43.73, 2.07)
CIE-LCHlch(28.67, 43.78, 2.72°)
OKLaboklab(40.26% 0.134 0.0058)
OKLCHoklch(40.26% 0.134 2.5)
XYZxyz(10.0277, 5.7090, 5.7271)
Luminance0.0571 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1D42 #1D7E59
analogous
#7E1D73 #7E1D42 #7E281D
triadic
#7E1D42 #427E1D #1D427E
tetradic
#7E1D42 #737E1D #1D7E59 #281D7E
square
#7E1D42 #737E1D #1D7E59 #281D7E
split-complementary
#7E1D42 #1D7E28 #1D737E
monochromatic
#1B060E #4C1228 #7E1D42 #B0285C #D34279

Accessibility & contrast

On white

9.81
#7E1D42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#7E1D42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1D42
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1D42#FFFFFF#000000##FFFFFF
##7E1D421.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#333843
Deuteranopia (green-blind)
#4D4A40
Tritanopia (blue-blind)
#890A2D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e1d42;
/* rgb */ color: rgb(126, 29, 66);
/* oklch */ color: oklch(40.3% 0.134 2.5);
Tailwind
colors: {
  custom: {
    50: '#a86276',
    500: '#7e1d42',
    950: '#000000',
  },
}
SCSS
$custom: #7e1d42;
$custom-light: #a86276;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1d42",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 66
  },
  "hsl": {
    "h": 337.113,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.40255,
    "c": 0.13416,
    "h": 2.5
  },
  "luminance": 0.05708
}

Semantic roles & 50–950 ramp

primary
#7E1D42
secondary
#45B188
accent
#E6A742
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100608
muted
#7F7A7B

Preview Lab

Preview with #7E1D42

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

Preview Lab → · Contrast checker → · Palette generator →

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