#7E2052#7E2052

#7E2052 is a dark, vivid pink. Relative luminance 0.061; OKLCH L 41.1% C 0.137 H 352.3°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#7E2052
RGBrgb(126, 32, 82)
HSLhsl(328, 59%, 31%)
HSVhsv(328, 75%, 49%)
CMYKcmyk(0%, 74.6%, 34.9%, 50.6%)
CIE-LABlab(29.61, 44.41, -7.15)
CIE-LCHlch(29.61, 44.98, 350.85°)
OKLaboklab(41.13% 0.1359 -0.0184)
OKLCHoklch(41.13% 0.137 352.3)
XYZxyz(10.6443, 6.0791, 8.5938)
Luminance0.0608 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2052 #207E4C
analogous
#7B207E #7E2052 #7E2023
triadic
#7E2052 #527E20 #20527E
tetradic
#7E2052 #7E7B20 #207E4C #20237E
square
#7E2052 #7E7B20 #207E4C #20237E
split-complementary
#7E2052 #237E20 #207E7B
monochromatic
#1C0712 #4D1432 #7E2052 #AF2C72 #D04891

Accessibility & contrast

On white

9.48
#7E2052 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7E2052 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2052
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2052#FFFFFF#000000##FFFFFF
##7E20521.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#303B53
Deuteranopia (green-blind)
#4B4C50
Tritanopia (blue-blind)
#881936
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e2052;
/* rgb */ color: rgb(126, 32, 82);
/* oklch */ color: oklch(41.1% 0.137 352.3);
Tailwind
colors: {
  custom: {
    50: '#a76482',
    500: '#7e2052',
    950: '#000000',
  },
}
SCSS
$custom: #7e2052;
$custom-light: #a76482;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2052",
  "rgb": {
    "r": 126,
    "g": 32,
    "b": 82
  },
  "hsl": {
    "h": 328.085,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.4113,
    "c": 0.13715,
    "h": 352.3
  },
  "luminance": 0.06078
}

Semantic roles & 50–950 ramp

primary
#7E2052
secondary
#49B17A
accent
#E38F45
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10060A
muted
#7F7A7C

Preview Lab

Preview with #7E2052

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

Preview Lab → · Contrast checker → · Palette generator →

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