#7E2152#7E2152

#7E2152 is a dark, vivid pink. Relative luminance 0.061; OKLCH L 41.2% C 0.136 H 352.4°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#7E2152
RGBrgb(126, 33, 82)
HSLhsl(328, 58%, 31%)
HSVhsv(328, 74%, 49%)
CMYKcmyk(0%, 73.8%, 34.9%, 50.6%)
CIE-LABlab(29.75, 44.03, -6.95)
CIE-LCHlch(29.75, 44.57, 351.03°)
OKLaboklab(41.23% 0.1347 -0.0179)
OKLCHoklch(41.23% 0.136 352.4)
XYZxyz(10.6716, 6.1338, 8.6030)
Luminance0.0613 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2152 #217E4D
analogous
#7B217E #7E2152 #7E2123
triadic
#7E2152 #527E21 #21527E
tetradic
#7E2152 #7E7B21 #217E4D #21237E
square
#7E2152 #7E7B21 #217E4D #21237E
split-complementary
#7E2152 #237E21 #217E7B
monochromatic
#1D0813 #4E1432 #7E2152 #AE2E72 #D04A90

Accessibility & contrast

On white

9.43
#7E2152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7E2152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2152
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2152#FFFFFF#000000##FFFFFF
##7E21521.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#313B53
Deuteranopia (green-blind)
#4B4C50
Tritanopia (blue-blind)
#881A36
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e2152;
/* rgb */ color: rgb(126, 33, 82);
/* oklch */ color: oklch(41.2% 0.136 352.4);
Tailwind
colors: {
  custom: {
    50: '#a76582',
    500: '#7e2152',
    950: '#000000',
  },
}
SCSS
$custom: #7e2152;
$custom-light: #a76582;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2152",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 328.387,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.4123,
    "c": 0.13589,
    "h": 352.4
  },
  "luminance": 0.06133
}

Semantic roles & 50–950 ramp

primary
#7E2152
secondary
#4AB17B
accent
#E29046
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10060A
muted
#7F7A7C

Preview Lab

Preview with #7E2152

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

Preview Lab → · Contrast checker → · Palette generator →

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