#7E2247#7E2247

#7E2247 is a dark, vivid pink. Relative luminance 0.060; OKLCH L 40.9% C 0.130 H 0.2°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#7E2247
RGBrgb(126, 34, 71)
HSLhsl(336, 58%, 31%)
HSVhsv(336, 73%, 49%)
CMYKcmyk(0%, 73%, 43.7%, 50.6%)
CIE-LABlab(29.50, 42.36, -0.04)
CIE-LCHlch(29.50, 42.36, 359.95°)
OKLaboklab(40.92% 0.1298 0.0004)
OKLCHoklch(40.92% 0.13 0.2)
XYZxyz(10.3143, 6.0359, 6.5819)
Luminance0.0604 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2247 #227E59
analogous
#7E2275 #7E2247 #7E2B22
triadic
#7E2247 #477E22 #22477E
tetradic
#7E2247 #757E22 #227E59 #2B227E
square
#7E2247 #757E22 #227E59 #2B227E
split-complementary
#7E2247 #227E2B #22757E
monochromatic
#1E0811 #4E152C #7E2247 #AE2F62 #CF4C80

Accessibility & contrast

On white

9.52
#7E2247 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#7E2247 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2247
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2247#FFFFFF#000000##FFFFFF
##7E22471.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#353A48
Deuteranopia (green-blind)
#4E4C45
Tritanopia (blue-blind)
#891631
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e2247;
/* rgb */ color: rgb(126, 34, 71);
/* oklch */ color: oklch(40.9% 0.130 0.2);
Tailwind
colors: {
  custom: {
    50: '#a8657a',
    500: '#7e2247',
    950: '#000000',
  },
}
SCSS
$custom: #7e2247;
$custom-light: #a8657a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2247",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 71
  },
  "hsl": {
    "h": 335.87,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40923,
    "c": 0.12982,
    "h": 0.2
  },
  "luminance": 0.06035
}

Semantic roles & 50–950 ramp

primary
#7E2247
secondary
#4BB188
accent
#E1A347
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100609
muted
#7F7A7B

Preview Lab

Preview with #7E2247

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

Preview Lab → · Contrast checker → · Palette generator →

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