#7F176D#7F176D

#7F176D is a dark, vivid pink. Relative luminance 0.062; OKLCH L 41.8% C 0.165 H 336.5°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#7F176D
RGBrgb(127, 23, 109)
HSLhsl(310, 69%, 29%)
HSVhsv(310, 82%, 50%)
CMYKcmyk(0%, 81.9%, 14.2%, 50.2%)
CIE-LABlab(29.99, 51.35, -24.11)
CIE-LCHlch(29.99, 56.73, 334.85°)
OKLaboklab(41.84% 0.1511 -0.0658)
OKLCHoklch(41.84% 0.165 336.5)
XYZxyz(11.8193, 6.2301, 15.0451)
Luminance0.0623 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F176D #177F29
analogous
#5D177F #7F176D #7F1739
triadic
#7F176D #6D7F17 #176D7F
tetradic
#7F176D #7F5D17 #177F29 #17397F
square
#7F176D #7F5D17 #177F29 #17397F
split-complementary
#7F176D #397F17 #177F5D
monochromatic
#1A0516 #4B0E41 #7F176D #B32099 #DB36BE

Accessibility & contrast

On white

9.35
#7F176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7F176D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F176D
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F176D#FFFFFF#000000##FFFFFF
##7F176D1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193D6F
Deuteranopia (green-blind)
#3F4C6B
Tritanopia (blue-blind)
#861F41
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f176d;
/* rgb */ color: rgb(127, 23, 109);
/* oklch */ color: oklch(41.8% 0.165 336.5);
Tailwind
colors: {
  custom: {
    50: '#a86297',
    500: '#7f176d',
    950: '#000000',
  },
}
SCSS
$custom: #7f176d;
$custom-light: #a86297;
$custom-dark: #000000;
JSON
{
  "hex": "#7f176d",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 310.385,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.41837,
    "c": 0.16483,
    "h": 336.5
  },
  "luminance": 0.06229
}

Semantic roles & 50–950 ramp

primary
#7F176D
secondary
#3EB453
accent
#EC5A3C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F176D

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

Preview Lab → · Contrast checker → · Palette generator →

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