#7F174B#7F174B

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

Color values

HEX#7F174B
RGBrgb(127, 23, 75)
HSLhsl(330, 69%, 29%)
HSVhsv(330, 82%, 50%)
CMYKcmyk(0%, 81.9%, 40.9%, 50.2%)
CIE-LABlab(28.47, 46.93, -4.20)
CIE-LCHlch(28.47, 47.11, 354.89°)
OKLaboklab(40.25% 0.1444 -0.0105)
OKLCHoklch(40.25% 0.145 355.9)
XYZxyz(10.3295, 5.6341, 7.1988)
Luminance0.0563 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F174B #177F4B
analogous
#7F177F #7F174B #7F1717
triadic
#7F174B #4B7F17 #174B7F
tetradic
#7F174B #7F7F17 #177F4B #17177F
square
#7F174B #7F7F17 #177F4B #17177F
split-complementary
#7F174B #177F17 #177F7F
monochromatic
#1A050F #4B0E2C #7F174B #B3206A #DB3688

Accessibility & contrast

On white

9.87
#7F174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F174B
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F174B#FFFFFF#000000##FFFFFF
##7F174B1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E374C
Deuteranopia (green-blind)
#4A4A49
Tritanopia (blue-blind)
#8A062F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7f174b;
/* rgb */ color: rgb(127, 23, 75);
/* oklch */ color: oklch(40.2% 0.145 355.9);
Tailwind
colors: {
  custom: {
    50: '#a9617d',
    500: '#7f174b',
    950: '#000000',
  },
}
SCSS
$custom: #7f174b;
$custom-light: #a9617d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f174b",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 330,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.40246,
    "c": 0.14473,
    "h": 355.9
  },
  "luminance": 0.05633
}

Semantic roles & 50–950 ramp

primary
#7F174B
secondary
#3EB479
accent
#EC943C
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#100509
muted
#7F7A7B

Preview Lab

Preview with #7F174B

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

Preview Lab → · Contrast checker → · Palette generator →

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