#7E1C40#7E1C40

#7E1C40 is a dark, vivid pink. Relative luminance 0.056; OKLCH L 40.1% C 0.135 H 3.6°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#7E1C40
RGBrgb(126, 28, 64)
HSLhsl(338, 64%, 30%)
HSVhsv(338, 78%, 49%)
CMYKcmyk(0%, 77.8%, 49.2%, 50.6%)
CIE-LABlab(28.48, 43.89, 3.14)
CIE-LCHlch(28.48, 44.01, 4.10°)
OKLaboklab(40.1% 0.1344 0.0085)
OKLCHoklch(40.1% 0.135 3.6)
XYZxyz(9.9457, 5.6376, 5.4139)
Luminance0.0564 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1C40 #1C7E5A
analogous
#7E1C71 #7E1C40 #7E291C
triadic
#7E1C40 #407E1C #1C407E
tetradic
#7E1C40 #717E1C #1C7E5A #291C7E
square
#7E1C40 #717E1C #1C7E5A #291C7E
split-complementary
#7E1C40 #1C7E29 #1C717E
monochromatic
#1A060D #4C1127 #7E1C40 #B02759 #D54076

Accessibility & contrast

On white

9.87
#7E1C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#7E1C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1C40
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1C40#FFFFFF#000000##FFFFFF
##7E1C401.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#333741
Deuteranopia (green-blind)
#4D4A3E
Tritanopia (blue-blind)
#89072B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e1c40;
/* rgb */ color: rgb(126, 28, 64);
/* oklch */ color: oklch(40.1% 0.135 3.6);
Tailwind
colors: {
  custom: {
    50: '#a86274',
    500: '#7e1c40',
    950: '#000000',
  },
}
SCSS
$custom: #7e1c40;
$custom-light: #a86274;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1c40",
  "rgb": {
    "r": 126,
    "g": 28,
    "b": 64
  },
  "hsl": {
    "h": 337.959,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.40098,
    "c": 0.13468,
    "h": 3.6
  },
  "luminance": 0.05636
}

Semantic roles & 50–950 ramp

primary
#7E1C40
secondary
#44B289
accent
#E7AA41
background
#FAF6F7
surface
#F5EBED
border
#CFC6C8
text
#100608
muted
#7F7A7B

Preview Lab

Preview with #7E1C40

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

Preview Lab → · Contrast checker → · Palette generator →

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