#7F176A#7F176A

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

Color values

HEX#7F176A
RGBrgb(127, 23, 106)
HSLhsl(312, 69%, 29%)
HSVhsv(312, 82%, 50%)
CMYKcmyk(0%, 81.9%, 16.5%, 50.2%)
CIE-LABlab(29.83, 50.91, -22.43)
CIE-LCHlch(29.83, 55.63, 336.22°)
OKLaboklab(41.67% 0.1509 -0.061)
OKLCHoklch(41.67% 0.163 338)
XYZxyz(11.6606, 6.1666, 14.2090)
Luminance0.0617 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F176A #177F2C
analogous
#60177F #7F176A #7F1736
triadic
#7F176A #6A7F17 #176A7F
tetradic
#7F176A #7F6017 #177F2C #17367F
square
#7F176A #7F6017 #177F2C #17367F
split-complementary
#7F176A #367F17 #177F60
monochromatic
#1A0516 #4B0E3F #7F176A #B32095 #DB36B9

Accessibility & contrast

On white

9.40
#7F176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7F176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F176A
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F176A#FFFFFF#000000##FFFFFF
##7F176A1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3C6C
Deuteranopia (green-blind)
#414C68
Tritanopia (blue-blind)
#861D40
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f176a;
/* rgb */ color: rgb(127, 23, 106);
/* oklch */ color: oklch(41.7% 0.163 338.0);
Tailwind
colors: {
  custom: {
    50: '#a86295',
    500: '#7f176a',
    950: '#000000',
  },
}
SCSS
$custom: #7f176a;
$custom-light: #a86295;
$custom-dark: #000000;
JSON
{
  "hex": "#7f176a",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 312.115,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.41674,
    "c": 0.16272,
    "h": 338
  },
  "luminance": 0.06165
}

Semantic roles & 50–950 ramp

primary
#7F176A
secondary
#3EB456
accent
#EC5F3C
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F176A

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

Preview Lab → · Contrast checker → · Palette generator →

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