#7E1842#7E1842

#7E1842 is a dark, vivid pink. Relative luminance 0.055; OKLCH L 39.8% C 0.139 H 1.5°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#7E1842
RGBrgb(126, 24, 66)
HSLhsl(335, 68%, 29%)
HSVhsv(335, 81%, 49%)
CMYKcmyk(0%, 81%, 47.6%, 50.6%)
CIE-LABlab(28.07, 45.41, 1.21)
CIE-LCHlch(28.07, 45.43, 1.53°)
OKLaboklab(39.82% 0.1394 0.0036)
OKLCHoklch(39.82% 0.139 1.5)
XYZxyz(9.9150, 5.4836, 5.6895)
Luminance0.0548 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1842 #187E54
analogous
#7E1875 #7E1842 #7E2118
triadic
#7E1842 #427E18 #18427E
tetradic
#7E1842 #757E18 #187E54 #21187E
square
#7E1842 #757E18 #187E54 #21187E
split-complementary
#7E1842 #187E21 #18757E
monochromatic
#1A050D #4B0E27 #7E1842 #B1225D #D9377A

Accessibility & contrast

On white

10.02
#7E1842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#7E1842 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1842
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1842#FFFFFF#000000##FFFFFF
##7E18421.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#313643
Deuteranopia (green-blind)
#4C4940
Tritanopia (blue-blind)
#89012B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #7e1842;
/* rgb */ color: rgb(126, 24, 66);
/* oklch */ color: oklch(39.8% 0.139 1.5);
Tailwind
colors: {
  custom: {
    50: '#a86076',
    500: '#7e1842',
    950: '#000000',
  },
}
SCSS
$custom: #7e1842;
$custom-light: #a86076;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1842",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 66
  },
  "hsl": {
    "h": 335.294,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.39817,
    "c": 0.13947,
    "h": 1.5
  },
  "luminance": 0.05482
}

Semantic roles & 50–950 ramp

primary
#7E1842
secondary
#3FB283
accent
#EBA33D
background
#FAF6F7
surface
#F5EBED
border
#CFC6C8
text
#110508
muted
#807A7B

Preview Lab

Preview with #7E1842

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

Preview Lab → · Contrast checker → · Palette generator →

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