#7E2145#7E2145

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

Color values

HEX#7E2145
RGBrgb(126, 33, 69)
HSLhsl(337, 58%, 31%)
HSVhsv(337, 74%, 49%)
CMYKcmyk(0%, 73.8%, 45.2%, 50.6%)
CIE-LABlab(29.30, 42.54, 0.99)
CIE-LCHlch(29.30, 42.55, 1.33°)
OKLaboklab(40.75% 0.1304 0.003)
OKLCHoklch(40.75% 0.13 1.3)
XYZxyz(10.2230, 5.9543, 6.2400)
Luminance0.0595 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2145 #217E5A
analogous
#7E2173 #7E2145 #7E2B21
triadic
#7E2145 #457E21 #21457E
tetradic
#7E2145 #737E21 #217E5A #2B217E
square
#7E2145 #737E21 #217E5A #2B217E
split-complementary
#7E2145 #217E2B #21737E
monochromatic
#1D0810 #4E142A #7E2145 #AE2E60 #D04A7E

Accessibility & contrast

On white

9.59
#7E2145 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2145
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2145#FFFFFF#000000##FFFFFF
##7E21451.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#353A46
Deuteranopia (green-blind)
#4E4C43
Tritanopia (blue-blind)
#891330
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e2145;
/* rgb */ color: rgb(126, 33, 69);
/* oklch */ color: oklch(40.8% 0.130 1.3);
Tailwind
colors: {
  custom: {
    50: '#a86478',
    500: '#7e2145',
    950: '#000000',
  },
}
SCSS
$custom: #7e2145;
$custom-light: #a86478;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2145",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 69
  },
  "hsl": {
    "h": 336.774,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40751,
    "c": 0.13039,
    "h": 1.3
  },
  "luminance": 0.05953
}

Semantic roles & 50–950 ramp

primary
#7E2145
secondary
#4AB189
accent
#E2A546
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100609
muted
#7F7A7B

Preview Lab

Preview with #7E2145

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

Preview Lab → · Contrast checker → · Palette generator →

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