#7F174E#7F174E

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

Color values

HEX#7F174E
RGBrgb(127, 23, 78)
HSLhsl(328, 69%, 29%)
HSVhsv(328, 82%, 50%)
CMYKcmyk(0%, 81.9%, 38.6%, 50.2%)
CIE-LABlab(28.58, 47.26, -6.03)
CIE-LCHlch(28.58, 47.64, 352.73°)
OKLaboklab(40.36% 0.1453 -0.0153)
OKLCHoklch(40.36% 0.146 354)
XYZxyz(10.4346, 5.6762, 7.7524)
Luminance0.0568 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F174E #177F48
analogous
#7C177F #7F174E #7F171A
triadic
#7F174E #4E7F17 #174E7F
tetradic
#7F174E #7F7C17 #177F48 #171A7F
square
#7F174E #7F7C17 #177F48 #171A7F
split-complementary
#7F174E #1A7F17 #177F7C
monochromatic
#1A0510 #4B0E2E #7F174E #B3206E #DB368D

Accessibility & contrast

On white

9.84
#7F174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#7F174E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F174E
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F174E#FFFFFF#000000##FFFFFF
##7F174E1.009.842.149.84
#FFFFFF9.841.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f174e;
/* rgb */ color: rgb(127, 23, 78);
/* oklch */ color: oklch(40.4% 0.146 354.0);
Tailwind
colors: {
  custom: {
    50: '#a9617f',
    500: '#7f174e',
    950: '#000000',
  },
}
SCSS
$custom: #7f174e;
$custom-light: #a9617f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f174e",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 328.269,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.40363,
    "c": 0.14608,
    "h": 354
  },
  "luminance": 0.05675
}

Semantic roles & 50–950 ramp

primary
#7F174E
secondary
#3EB476
accent
#EC8F3C
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10050A
muted
#7F7A7C

Preview Lab

Preview with #7F174E

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

Preview Lab → · Contrast checker → · Palette generator →

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