#7E1F52#7E1F52

#7E1F52 is a dark, vivid pink. Relative luminance 0.060; OKLCH L 41.0% C 0.138 H 352.1°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#7E1F52
RGBrgb(126, 31, 82)
HSLhsl(328, 61%, 31%)
HSVhsv(328, 75%, 49%)
CMYKcmyk(0%, 75.4%, 34.9%, 50.6%)
CIE-LABlab(29.48, 44.78, -7.35)
CIE-LCHlch(29.48, 45.38, 350.68°)
OKLaboklab(41.03% 0.1371 -0.019)
OKLCHoklch(41.03% 0.138 352.1)
XYZxyz(10.6178, 6.0260, 8.5850)
Luminance0.0602 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F52 #1F7E4B
analogous
#7A1F7E #7E1F52 #7E1F23
triadic
#7E1F52 #527E1F #1F527E
tetradic
#7E1F52 #7E7A1F #1F7E4B #1F237E
square
#7E1F52 #7E7A1F #1F7E4B #1F237E
split-complementary
#7E1F52 #237E1F #1F7E7A
monochromatic
#1C0712 #4D1332 #7E1F52 #AF2B72 #D14691

Accessibility & contrast

On white

9.52
#7E1F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#7E1F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F52
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F52#FFFFFF#000000##FFFFFF
##7E1F521.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F3B53
Deuteranopia (green-blind)
#4A4C50
Tritanopia (blue-blind)
#881835
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e1f52;
/* rgb */ color: rgb(126, 31, 82);
/* oklch */ color: oklch(41.0% 0.138 352.1);
Tailwind
colors: {
  custom: {
    50: '#a76482',
    500: '#7e1f52',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f52;
$custom-light: #a76482;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f52",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 82
  },
  "hsl": {
    "h": 327.789,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.41032,
    "c": 0.13839,
    "h": 352.1
  },
  "luminance": 0.06025
}

Semantic roles & 50–950 ramp

primary
#7E1F52
secondary
#48B179
accent
#E48E44
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10060A
muted
#7F7A7C

Preview Lab

Preview with #7E1F52

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

Preview Lab → · Contrast checker → · Palette generator →

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