#7E1752#7E1752

#7E1752 is a dark, vivid pink. Relative luminance 0.057; OKLCH L 40.3% C 0.147 H 351.1°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#7E1752
RGBrgb(126, 23, 82)
HSLhsl(326, 69%, 29%)
HSVhsv(326, 82%, 49%)
CMYKcmyk(0%, 81.7%, 34.9%, 50.6%)
CIE-LABlab(28.54, 47.45, -8.77)
CIE-LCHlch(28.54, 48.25, 349.53°)
OKLaboklab(40.34% 0.1455 -0.0228)
OKLCHoklch(40.34% 0.147 351.1)
XYZxyz(10.4342, 5.6589, 8.5238)
Luminance0.0566 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1752 #177E43
analogous
#77177E #7E1752 #7E171F
triadic
#7E1752 #527E17 #17527E
tetradic
#7E1752 #7E7717 #177E43 #171F7E
square
#7E1752 #7E7717 #177E43 #171F7E
split-complementary
#7E1752 #1F7E17 #177E77
monochromatic
#1A0511 #4A0E30 #7E1752 #B22074 #DA3594

Accessibility & contrast

On white

9.85
#7E1752 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#7E1752 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1752
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1752#FFFFFF#000000##FFFFFF
##7E17521.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A3853
Deuteranopia (green-blind)
#484A50
Tritanopia (blue-blind)
#880D33
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e1752;
/* rgb */ color: rgb(126, 23, 82);
/* oklch */ color: oklch(40.3% 0.147 351.1);
Tailwind
colors: {
  custom: {
    50: '#a86182',
    500: '#7e1752',
    950: '#000000',
  },
}
SCSS
$custom: #7e1752;
$custom-light: #a86182;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1752",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 82
  },
  "hsl": {
    "h": 325.631,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.40344,
    "c": 0.14728,
    "h": 351.1
  },
  "luminance": 0.05658
}

Semantic roles & 50–950 ramp

primary
#7E1752
secondary
#3EB370
accent
#EC873C
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10050A
muted
#7F7A7C

Preview Lab

Preview with #7E1752

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

Preview Lab → · Contrast checker → · Palette generator →

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