#7E1F4E#7E1F4E

#7E1F4E is a dark, vivid pink. Relative luminance 0.060; OKLCH L 40.9% C 0.136 H 354.8°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#7E1F4E
RGBrgb(126, 31, 78)
HSLhsl(330, 61%, 31%)
HSVhsv(330, 75%, 49%)
CMYKcmyk(0%, 75.4%, 38.1%, 50.6%)
CIE-LABlab(29.33, 44.30, -4.93)
CIE-LCHlch(29.33, 44.58, 353.65°)
OKLaboklab(40.87% 0.1359 -0.0125)
OKLCHoklch(40.87% 0.136 354.8)
XYZxyz(10.4700, 5.9669, 7.8066)
Luminance0.0597 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F4E #1F7E4F
analogous
#7E1F7D #7E1F4E #7E1F1F
triadic
#7E1F4E #4E7E1F #1F4E7E
tetradic
#7E1F4E #7D7E1F #1F7E4F #1F1F7E
square
#7E1F4E #7D7E1F #1F7E4F #1F1F7E
split-complementary
#7E1F4E #1F7E1F #1F7D7E
monochromatic
#1C0711 #4D1330 #7E1F4E #AF2B6C #D1468B

Accessibility & contrast

On white

9.58
#7E1F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1F4E
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F4E#FFFFFF#000000##FFFFFF
##7E1F4E1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#313A4F
Deuteranopia (green-blind)
#4B4B4C
Tritanopia (blue-blind)
#881533
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e1f4e;
/* rgb */ color: rgb(126, 31, 78);
/* oklch */ color: oklch(40.9% 0.136 354.8);
Tailwind
colors: {
  custom: {
    50: '#a7647f',
    500: '#7e1f4e',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f4e;
$custom-light: #a7647f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f4e",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 78
  },
  "hsl": {
    "h": 330.316,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40874,
    "c": 0.13644,
    "h": 354.8
  },
  "luminance": 0.05966
}

Semantic roles & 50–950 ramp

primary
#7E1F4E
secondary
#48B17D
accent
#E49544
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10060A
muted
#7F7A7C

Preview Lab

Preview with #7E1F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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