#7E1251#7E1251

#7E1251 is a dark, vivid pink. Relative luminance 0.055; OKLCH L 40.0% C 0.151 H 351.2°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#7E1251
RGBrgb(126, 18, 81)
HSLhsl(325, 75%, 28%)
HSVhsv(325, 86%, 49%)
CMYKcmyk(0%, 85.7%, 35.7%, 50.6%)
CIE-LABlab(28.02, 48.70, -8.89)
CIE-LCHlch(28.02, 49.51, 349.65°)
OKLaboklab(39.95% 0.1496 -0.0231)
OKLCHoklch(39.95% 0.151 351.2)
XYZxyz(10.3063, 5.4636, 8.2948)
Luminance0.0546 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1251 #127E3F
analogous
#75127E #7E1251 #7E121B
triadic
#7E1251 #517E12 #12517E
tetradic
#7E1251 #7E7512 #127E3F #121B7E
square
#7E1251 #7E7512 #127E3F #121B7E
split-complementary
#7E1251 #1B7E12 #127E75
monochromatic
#1B0411 #480A2F #7E1251 #B41A73 #E12A94

Accessibility & contrast

On white

10.04
#7E1251 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#7E1251 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1251
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1251#FFFFFF#000000##FFFFFF
##7E12511.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#283653
Deuteranopia (green-blind)
#47494F
Tritanopia (blue-blind)
#880531
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #7e1251;
/* rgb */ color: rgb(126, 18, 81);
/* oklch */ color: oklch(40.0% 0.151 351.2);
Tailwind
colors: {
  custom: {
    50: '#a85f81',
    500: '#7e1251',
    950: '#000000',
  },
}
SCSS
$custom: #7e1251;
$custom-light: #a85f81;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1251",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 81
  },
  "hsl": {
    "h": 325,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.39954,
    "c": 0.15135,
    "h": 351.2
  },
  "luminance": 0.05462
}

Semantic roles & 50–950 ramp

primary
#7E1251
secondary
#38B46C
accent
#F28436
background
#FAF5F7
surface
#F4EAEE
border
#CEC6C9
text
#10050A
muted
#7F797C

Preview Lab

Preview with #7E1251

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

Preview Lab → · Contrast checker → · Palette generator →

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