#7E2147#7E2147

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

Color values

HEX#7E2147
RGBrgb(126, 33, 71)
HSLhsl(335, 58%, 31%)
HSVhsv(335, 74%, 49%)
CMYKcmyk(0%, 73.8%, 43.7%, 50.6%)
CIE-LABlab(29.36, 42.75, -0.25)
CIE-LCHlch(29.36, 42.75, 359.67°)
OKLaboklab(40.82% 0.1311 -0.0001)
OKLCHoklch(40.82% 0.131 359.9)
XYZxyz(10.2861, 5.9796, 6.5725)
Luminance0.0598 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2147 #217E58
analogous
#7E2175 #7E2147 #7E2921
triadic
#7E2147 #477E21 #21477E
tetradic
#7E2147 #757E21 #217E58 #29217E
square
#7E2147 #757E21 #217E58 #29217E
split-complementary
#7E2147 #217E29 #21757E
monochromatic
#1D0810 #4E142C #7E2147 #AE2E62 #D04A80

Accessibility & contrast

On white

9.56
#7E2147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#7E2147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2147
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2147#FFFFFF#000000##FFFFFF
##7E21471.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2147;
/* rgb */ color: rgb(126, 33, 71);
/* oklch */ color: oklch(40.8% 0.131 359.9);
Tailwind
colors: {
  custom: {
    50: '#a8647a',
    500: '#7e2147',
    950: '#000000',
  },
}
SCSS
$custom: #7e2147;
$custom-light: #a8647a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2147",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 71
  },
  "hsl": {
    "h": 335.484,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40819,
    "c": 0.13108,
    "h": 359.9
  },
  "luminance": 0.05978
}

Semantic roles & 50–950 ramp

primary
#7E2147
secondary
#4AB187
accent
#E2A246
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100609
muted
#7F7A7B

Preview Lab

Preview with #7E2147

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

Preview Lab → · Contrast checker → · Palette generator →

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