#7F176B#7F176B

#7F176B is a dark, vivid pink. Relative luminance 0.062; OKLCH L 41.7% C 0.163 H 337.5°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#7F176B
RGBrgb(127, 23, 107)
HSLhsl(312, 69%, 29%)
HSVhsv(312, 82%, 50%)
CMYKcmyk(0%, 81.9%, 15.7%, 50.2%)
CIE-LABlab(29.88, 51.05, -22.99)
CIE-LCHlch(29.88, 55.99, 335.76°)
OKLaboklab(41.73% 0.151 -0.0626)
OKLCHoklch(41.73% 0.163 337.5)
XYZxyz(11.7129, 6.1875, 14.4845)
Luminance0.0619 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F176B #177F2B
analogous
#5F177F #7F176B #7F1737
triadic
#7F176B #6B7F17 #176B7F
tetradic
#7F176B #7F5F17 #177F2B #17377F
square
#7F176B #7F5F17 #177F2B #17377F
split-complementary
#7F176B #377F17 #177F5F
monochromatic
#1A0516 #4B0E3F #7F176B #B32097 #DB36BB

Accessibility & contrast

On white

9.39
#7F176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7F176B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F176B
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F176B#FFFFFF#000000##FFFFFF
##7F176B1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3C6D
Deuteranopia (green-blind)
#404C69
Tritanopia (blue-blind)
#861E40
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f176b;
/* rgb */ color: rgb(127, 23, 107);
/* oklch */ color: oklch(41.7% 0.163 337.5);
Tailwind
colors: {
  custom: {
    50: '#a86295',
    500: '#7f176b',
    950: '#000000',
  },
}
SCSS
$custom: #7f176b;
$custom-light: #a86295;
$custom-dark: #000000;
JSON
{
  "hex": "#7f176b",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 311.538,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.41728,
    "c": 0.16342,
    "h": 337.5
  },
  "luminance": 0.06186
}

Semantic roles & 50–950 ramp

primary
#7F176B
secondary
#3EB455
accent
#EC5E3C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F176B

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

Preview Lab → · Contrast checker → · Palette generator →

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