#7E2240#7E2240

#7E2240 is a dark, vivid pink. Relative luminance 0.059; OKLCH L 40.7% C 0.128 H 5.1°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#7E2240
RGBrgb(126, 34, 64)
HSLhsl(340, 58%, 31%)
HSVhsv(340, 73%, 49%)
CMYKcmyk(0%, 73%, 49.2%, 50.6%)
CIE-LABlab(29.29, 41.63, 4.30)
CIE-LCHlch(29.29, 41.86, 5.90°)
OKLaboklab(40.7% 0.1272 0.0114)
OKLCHoklch(40.7% 0.128 5.1)
XYZxyz(10.1024, 5.9512, 5.4662)
Luminance0.0595 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2240 #227E60
analogous
#7E226E #7E2240 #7E3222
triadic
#7E2240 #407E22 #22407E
tetradic
#7E2240 #6E7E22 #227E60 #32227E
square
#7E2240 #6E7E22 #227E60 #32227E
split-complementary
#7E2240 #227E32 #226E7E
monochromatic
#1E080F #4E1528 #7E2240 #AE2F58 #CF4C76

Accessibility & contrast

On white

9.59
#7E2240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#7E2240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2240
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2240#FFFFFF#000000##FFFFFF
##7E22401.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373941
Deuteranopia (green-blind)
#4F4C3E
Tritanopia (blue-blind)
#89122E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e2240;
/* rgb */ color: rgb(126, 34, 64);
/* oklch */ color: oklch(40.7% 0.128 5.1);
Tailwind
colors: {
  custom: {
    50: '#a86574',
    500: '#7e2240',
    950: '#000000',
  },
}
SCSS
$custom: #7e2240;
$custom-light: #a86574;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2240",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 64
  },
  "hsl": {
    "h": 340.435,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40695,
    "c": 0.12768,
    "h": 5.1
  },
  "luminance": 0.0595
}

Semantic roles & 50–950 ramp

primary
#7E2240
secondary
#4BB190
accent
#E1AF47
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100608
muted
#7F7A7B

Preview Lab

Preview with #7E2240

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

Preview Lab → · Contrast checker → · Palette generator →

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