#7E2140#7E2140

#7E2140 is a dark, vivid pink. Relative luminance 0.059; OKLCH L 40.6% C 0.129 H 4.9°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#7E2140
RGBrgb(126, 33, 64)
HSLhsl(340, 58%, 31%)
HSVhsv(340, 74%, 49%)
CMYKcmyk(0%, 73.8%, 49.2%, 50.6%)
CIE-LABlab(29.15, 42.03, 4.10)
CIE-LCHlch(29.15, 42.23, 5.57°)
OKLaboklab(40.59% 0.1284 0.0109)
OKLCHoklch(40.59% 0.129 4.9)
XYZxyz(10.0743, 5.8948, 5.4568)
Luminance0.0589 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2140 #217E5F
analogous
#7E216E #7E2140 #7E3021
triadic
#7E2140 #407E21 #21407E
tetradic
#7E2140 #6E7E21 #217E5F #30217E
square
#7E2140 #6E7E21 #217E5F #30217E
split-complementary
#7E2140 #217E30 #216E7E
monochromatic
#1D080F #4E1427 #7E2140 #AE2E59 #D04A76

Accessibility & contrast

On white

9.64
#7E2140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#7E2140 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2140
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2140#FFFFFF#000000##FFFFFF
##7E21401.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#363941
Deuteranopia (green-blind)
#4F4B3E
Tritanopia (blue-blind)
#89102E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e2140;
/* rgb */ color: rgb(126, 33, 64);
/* oklch */ color: oklch(40.6% 0.129 4.9);
Tailwind
colors: {
  custom: {
    50: '#a86474',
    500: '#7e2140',
    950: '#000000',
  },
}
SCSS
$custom: #7e2140;
$custom-light: #a86474;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2140",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 64
  },
  "hsl": {
    "h": 340,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40589,
    "c": 0.1289,
    "h": 4.9
  },
  "luminance": 0.05893
}

Semantic roles & 50–950 ramp

primary
#7E2140
secondary
#4AB18F
accent
#E2AE46
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100608
muted
#7F7A7B

Preview Lab

Preview with #7E2140

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

Preview Lab → · Contrast checker → · Palette generator →

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