#7F1251#7F1251

#7F1251 is a dark, vivid pink. Relative luminance 0.055; OKLCH L 40.1% C 0.152 H 351.6°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#7F1251
RGBrgb(127, 18, 81)
HSLhsl(325, 75%, 28%)
HSVhsv(325, 86%, 50%)
CMYKcmyk(0%, 85.8%, 36.2%, 50.2%)
CIE-LABlab(28.22, 48.96, -8.56)
CIE-LCHlch(28.22, 49.70, 350.08°)
OKLaboklab(40.14% 0.1504 -0.0222)
OKLCHoklch(40.14% 0.152 351.6)
XYZxyz(10.4546, 5.5400, 8.3018)
Luminance0.0554 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1251 #127F40
analogous
#76127F #7F1251 #7F121B
triadic
#7F1251 #517F12 #12517F
tetradic
#7F1251 #7F7612 #127F40 #121B7F
square
#7F1251 #7F7612 #127F40 #121B7F
split-complementary
#7F1251 #1B7F12 #127F76
monochromatic
#1B0411 #490A2F #7F1251 #B51A73 #E12B94

Accessibility & contrast

On white

9.96
#7F1251 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#7F1251 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1251
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1251#FFFFFF#000000##FFFFFF
##7F12511.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#293653
Deuteranopia (green-blind)
#48494F
Tritanopia (blue-blind)
#890431
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7f1251;
/* rgb */ color: rgb(127, 18, 81);
/* oklch */ color: oklch(40.1% 0.152 351.6);
Tailwind
colors: {
  custom: {
    50: '#a95f81',
    500: '#7f1251',
    950: '#000000',
  },
}
SCSS
$custom: #7f1251;
$custom-light: #a95f81;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1251",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 81
  },
  "hsl": {
    "h": 325.321,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.40139,
    "c": 0.15206,
    "h": 351.6
  },
  "luminance": 0.05539
}

Semantic roles & 50–950 ramp

primary
#7F1251
secondary
#38B56D
accent
#F28536
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10050A
muted
#7F7A7C

Preview Lab

Preview with #7F1251

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

Preview Lab → · Contrast checker → · Palette generator →

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