#7F174D#7F174D

#7F174D is a dark, vivid pink. Relative luminance 0.057; OKLCH L 40.3% C 0.146 H 354.6°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#7F174D
RGBrgb(127, 23, 77)
HSLhsl(329, 69%, 29%)
HSVhsv(329, 82%, 50%)
CMYKcmyk(0%, 81.9%, 39.4%, 50.2%)
CIE-LABlab(28.54, 47.15, -5.42)
CIE-LCHlch(28.54, 47.46, 353.44°)
OKLaboklab(40.32% 0.145 -0.0137)
OKLCHoklch(40.32% 0.146 354.6)
XYZxyz(10.3991, 5.6620, 7.5650)
Luminance0.0566 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F174D #177F49
analogous
#7D177F #7F174D #7F1719
triadic
#7F174D #4D7F17 #174D7F
tetradic
#7F174D #7F7D17 #177F49 #17197F
square
#7F174D #7F7D17 #177F49 #17197F
split-complementary
#7F174D #197F17 #177F7D
monochromatic
#1A0510 #4B0E2E #7F174D #B3206C #DB368B

Accessibility & contrast

On white

9.85
#7F174D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#7F174D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F174D
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F174D#FFFFFF#000000##FFFFFF
##7F174D1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D374E
Deuteranopia (green-blind)
#4A4A4B
Tritanopia (blue-blind)
#8A0830
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7f174d;
/* rgb */ color: rgb(127, 23, 77);
/* oklch */ color: oklch(40.3% 0.146 354.6);
Tailwind
colors: {
  custom: {
    50: '#a9617e',
    500: '#7f174d',
    950: '#000000',
  },
}
SCSS
$custom: #7f174d;
$custom-light: #a9617e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f174d",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 77
  },
  "hsl": {
    "h": 328.846,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.40323,
    "c": 0.14562,
    "h": 354.6
  },
  "luminance": 0.05661
}

Semantic roles & 50–950 ramp

primary
#7F174D
secondary
#3EB477
accent
#EC913C
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10050A
muted
#7F7A7C

Preview Lab

Preview with #7F174D

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

Preview Lab → · Contrast checker → · Palette generator →

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