#7E1F40#7E1F40

#7E1F40 is a dark, vivid pink. Relative luminance 0.058; OKLCH L 40.4% C 0.131 H 4.3°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#7E1F40
RGBrgb(126, 31, 64)
HSLhsl(339, 61%, 31%)
HSVhsv(339, 75%, 49%)
CMYKcmyk(0%, 75.4%, 49.2%, 50.6%)
CIE-LABlab(28.87, 42.80, 3.70)
CIE-LCHlch(28.87, 42.96, 4.94°)
OKLaboklab(40.39% 0.1309 0.0099)
OKLCHoklch(40.39% 0.131 4.3)
XYZxyz(10.0204, 5.7871, 5.4389)
Luminance0.0579 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F40 #1F7E5D
analogous
#7E1F6F #7E1F40 #7E2D1F
triadic
#7E1F40 #407E1F #1F407E
tetradic
#7E1F40 #6F7E1F #1F7E5D #2D1F7E
square
#7E1F40 #6F7E1F #1F7E5D #2D1F7E
split-complementary
#7E1F40 #1F7E2D #1F6F7E
monochromatic
#1C070E #4D1327 #7E1F40 #AF2B59 #D14676

Accessibility & contrast

On white

9.73
#7E1F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#7E1F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F40
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F40#FFFFFF#000000##FFFFFF
##7E1F401.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#353841
Deuteranopia (green-blind)
#4E4B3E
Tritanopia (blue-blind)
#890D2D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e1f40;
/* rgb */ color: rgb(126, 31, 64);
/* oklch */ color: oklch(40.4% 0.131 4.3);
Tailwind
colors: {
  custom: {
    50: '#a86374',
    500: '#7e1f40',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f40;
$custom-light: #a86374;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f40",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 64
  },
  "hsl": {
    "h": 339.158,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40385,
    "c": 0.13128,
    "h": 4.3
  },
  "luminance": 0.05786
}

Semantic roles & 50–950 ramp

primary
#7E1F40
secondary
#48B18C
accent
#E4AC44
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100608
muted
#7F7A7B

Preview Lab

Preview with #7E1F40

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

Preview Lab → · Contrast checker → · Palette generator →

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