#7E2139#7E2139

#7E2139 is a dark, vivid pink. Relative luminance 0.058; OKLCH L 40.4% C 0.127 H 9.8°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#7E2139
RGBrgb(126, 33, 57)
HSLhsl(345, 58%, 31%)
HSVhsv(345, 74%, 49%)
CMYKcmyk(0%, 73.8%, 54.8%, 50.6%)
CIE-LABlab(28.95, 41.39, 8.50)
CIE-LCHlch(28.95, 42.25, 11.60°)
OKLaboklab(40.39% 0.1256 0.0217)
OKLCHoklch(40.39% 0.127 9.8)
XYZxyz(9.8874, 5.8201, 4.4728)
Luminance0.0582 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2139 #217E66
analogous
#7E2167 #7E2139 #7E3721
triadic
#7E2139 #397E21 #21397E
tetradic
#7E2139 #677E21 #217E66 #37217E
square
#7E2139 #677E21 #217E66 #37217E
split-complementary
#7E2139 #217E37 #21677E
monochromatic
#1D080D #4E1423 #7E2139 #AE2E4F #D04A6C

Accessibility & contrast

On white

9.71
#7E2139 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#7E2139 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2139
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2139#FFFFFF#000000##FFFFFF
##7E21391.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383839
Deuteranopia (green-blind)
#504B37
Tritanopia (blue-blind)
#8A0C2B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e2139;
/* rgb */ color: rgb(126, 33, 57);
/* oklch */ color: oklch(40.4% 0.127 9.8);
Tailwind
colors: {
  custom: {
    50: '#a9646f',
    500: '#7e2139',
    950: '#000000',
  },
}
SCSS
$custom: #7e2139;
$custom-light: #a9646f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2139",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 57
  },
  "hsl": {
    "h": 344.516,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40385,
    "c": 0.12747,
    "h": 9.8
  },
  "luminance": 0.05819
}

Semantic roles & 50–950 ramp

primary
#7E2139
secondary
#4AB196
accent
#E2BA46
background
#FAF6F6
surface
#F5EBEC
border
#CFC6C7
text
#110607
muted
#807A7A

Preview Lab

Preview with #7E2139

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

Preview Lab → · Contrast checker → · Palette generator →

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