#7E2143#7E2143

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

Color values

HEX#7E2143
RGBrgb(126, 33, 67)
HSLhsl(338, 58%, 31%)
HSVhsv(338, 74%, 49%)
CMYKcmyk(0%, 73.8%, 46.8%, 50.6%)
CIE-LABlab(29.23, 42.33, 2.23)
CIE-LCHlch(29.23, 42.39, 3.01°)
OKLaboklab(40.69% 0.1296 0.0062)
OKLCHoklch(40.69% 0.13 2.7)
XYZxyz(10.1619, 5.9299, 5.9186)
Luminance0.0593 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2143 #217E5C
analogous
#7E2171 #7E2143 #7E2D21
triadic
#7E2143 #437E21 #21437E
tetradic
#7E2143 #717E21 #217E5C #2D217E
square
#7E2143 #717E21 #217E5C #2D217E
split-complementary
#7E2143 #217E2D #21717E
monochromatic
#1D080F #4E1429 #7E2143 #AE2E5D #D04A7B

Accessibility & contrast

On white

9.61
#7E2143 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2143
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2143#FFFFFF#000000##FFFFFF
##7E21431.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#363944
Deuteranopia (green-blind)
#4E4C41
Tritanopia (blue-blind)
#89122F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e2143;
/* rgb */ color: rgb(126, 33, 67);
/* oklch */ color: oklch(40.7% 0.130 2.7);
Tailwind
colors: {
  custom: {
    50: '#a86476',
    500: '#7e2143',
    950: '#000000',
  },
}
SCSS
$custom: #7e2143;
$custom-light: #a86476;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2143",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 67
  },
  "hsl": {
    "h": 338.065,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40685,
    "c": 0.12975,
    "h": 2.7
  },
  "luminance": 0.05929
}

Semantic roles & 50–950 ramp

primary
#7E2143
secondary
#4AB18B
accent
#E2A946
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100608
muted
#7F7A7B

Preview Lab

Preview with #7E2143

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

Preview Lab → · Contrast checker → · Palette generator →

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