#7E2242#7E2242

#7E2242 is a dark, vivid pink. Relative luminance 0.060; OKLCH L 40.8% C 0.128 H 3.7°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#7E2242
RGBrgb(126, 34, 66)
HSLhsl(339, 58%, 31%)
HSVhsv(339, 73%, 49%)
CMYKcmyk(0%, 73%, 47.6%, 50.6%)
CIE-LABlab(29.35, 41.83, 3.06)
CIE-LCHlch(29.35, 41.95, 4.18°)
OKLaboklab(40.76% 0.128 0.0083)
OKLCHoklch(40.76% 0.128 3.7)
XYZxyz(10.1604, 5.9743, 5.7713)
Luminance0.0597 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2242 #227E5E
analogous
#7E2270 #7E2242 #7E3022
triadic
#7E2242 #427E22 #22427E
tetradic
#7E2242 #707E22 #227E5E #30227E
square
#7E2242 #707E22 #227E5E #30227E
split-complementary
#7E2242 #227E30 #22707E
monochromatic
#1E0810 #4E1529 #7E2242 #AE2F5B #CF4C79

Accessibility & contrast

On white

9.57
#7E2242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2242
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2242#FFFFFF#000000##FFFFFF
##7E22421.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#363A43
Deuteranopia (green-blind)
#4F4C40
Tritanopia (blue-blind)
#89132F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e2242;
/* rgb */ color: rgb(126, 34, 66);
/* oklch */ color: oklch(40.8% 0.128 3.7);
Tailwind
colors: {
  custom: {
    50: '#a86576',
    500: '#7e2242',
    950: '#000000',
  },
}
SCSS
$custom: #7e2242;
$custom-light: #a86576;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2242",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 66
  },
  "hsl": {
    "h": 339.13,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40758,
    "c": 0.12822,
    "h": 3.7
  },
  "luminance": 0.05973
}

Semantic roles & 50–950 ramp

primary
#7E2242
secondary
#4BB18D
accent
#E1AB47
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100608
muted
#7F7A7B

Preview Lab

Preview with #7E2242

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

Preview Lab → · Contrast checker → · Palette generator →

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