#7E1840#7E1840

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

Color values

HEX#7E1840
RGBrgb(126, 24, 64)
HSLhsl(336, 68%, 29%)
HSVhsv(336, 81%, 49%)
CMYKcmyk(0%, 81%, 49.2%, 50.6%)
CIE-LABlab(28.01, 45.22, 2.47)
CIE-LCHlch(28.01, 45.29, 3.12°)
OKLaboklab(39.75% 0.1387 0.0068)
OKLCHoklch(39.75% 0.139 2.8)
XYZxyz(9.8571, 5.4604, 5.3844)
Luminance0.0546 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1840 #187E56
analogous
#7E1873 #7E1840 #7E2318
triadic
#7E1840 #407E18 #18407E
tetradic
#7E1840 #737E18 #187E56 #23187E
square
#7E1840 #737E18 #187E56 #23187E
split-complementary
#7E1840 #187E23 #18737E
monochromatic
#1A050D #4B0E26 #7E1840 #B1225A #D93777

Accessibility & contrast

On white

10.04
#7E1840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#7E1840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1840
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1840#FFFFFF#000000##FFFFFF
##7E18401.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#313541
Deuteranopia (green-blind)
#4C493E
Tritanopia (blue-blind)
#89002A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #7e1840;
/* rgb */ color: rgb(126, 24, 64);
/* oklch */ color: oklch(39.8% 0.139 2.8);
Tailwind
colors: {
  custom: {
    50: '#a96074',
    500: '#7e1840',
    950: '#000000',
  },
}
SCSS
$custom: #7e1840;
$custom-light: #a96074;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1840",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 64
  },
  "hsl": {
    "h": 336.471,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.39751,
    "c": 0.13885,
    "h": 2.8
  },
  "luminance": 0.05459
}

Semantic roles & 50–950 ramp

primary
#7E1840
secondary
#3FB285
accent
#EBA73D
background
#FAF6F7
surface
#F5EBED
border
#CFC6C8
text
#110508
muted
#807A7B

Preview Lab

Preview with #7E1840

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

Preview Lab → · Contrast checker → · Palette generator →

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