#7F174A#7F174A

#7F174A is a dark, vivid pink. Relative luminance 0.056; OKLCH L 40.2% C 0.144 H 356.5°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#7F174A
RGBrgb(127, 23, 74)
HSLhsl(331, 69%, 29%)
HSVhsv(331, 82%, 50%)
CMYKcmyk(0%, 81.9%, 41.7%, 50.2%)
CIE-LABlab(28.43, 46.82, -3.59)
CIE-LCHlch(28.43, 46.96, 355.62°)
OKLaboklab(40.21% 0.144 -0.0088)
OKLCHoklch(40.21% 0.144 356.5)
XYZxyz(10.2956, 5.6206, 7.0200)
Luminance0.0562 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F174A #177F4C
analogous
#7F177E #7F174A #7F1817
triadic
#7F174A #4A7F17 #174A7F
tetradic
#7F174A #7E7F17 #177F4C #18177F
square
#7F174A #7E7F17 #177F4C #18177F
split-complementary
#7F174A #177F18 #177E7F
monochromatic
#1A050F #4B0E2C #7F174A #B32068 #DB3687

Accessibility & contrast

On white

9.89
#7F174A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#7F174A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F174A
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F174A#FFFFFF#000000##FFFFFF
##7F174A1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E374B
Deuteranopia (green-blind)
#4B4A48
Tritanopia (blue-blind)
#8A052E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7f174a;
/* rgb */ color: rgb(127, 23, 74);
/* oklch */ color: oklch(40.2% 0.144 356.5);
Tailwind
colors: {
  custom: {
    50: '#a9617c',
    500: '#7f174a',
    950: '#000000',
  },
}
SCSS
$custom: #7f174a;
$custom-light: #a9617c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f174a",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 74
  },
  "hsl": {
    "h": 330.577,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.40208,
    "c": 0.1443,
    "h": 356.5
  },
  "luminance": 0.05619
}

Semantic roles & 50–950 ramp

primary
#7F174A
secondary
#3EB47A
accent
#EC963C
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#100509
muted
#7F7A7B

Preview Lab

Preview with #7F174A

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

Preview Lab → · Contrast checker → · Palette generator →

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