#7F166A#7F166A

#7F166A is a dark, vivid pink. Relative luminance 0.061; OKLCH L 41.6% C 0.164 H 338.0°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#7F166A
RGBrgb(127, 22, 106)
HSLhsl(312, 70%, 29%)
HSVhsv(312, 83%, 50%)
CMYKcmyk(0%, 82.7%, 16.5%, 50.2%)
CIE-LABlab(29.73, 51.19, -22.58)
CIE-LCHlch(29.73, 55.95, 336.19°)
OKLaboklab(41.6% 0.1517 -0.0614)
OKLCHoklch(41.6% 0.164 338)
XYZxyz(11.6411, 6.1276, 14.2025)
Luminance0.0613 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F166A #167F2B
analogous
#60167F #7F166A #7F1636
triadic
#7F166A #6A7F16 #166A7F
tetradic
#7F166A #7F6016 #167F2B #16367F
square
#7F166A #7F6016 #167F2B #16367F
split-complementary
#7F166A #367F16 #167F60
monochromatic
#1A0516 #4B0D3E #7F166A #B31F96 #DC34BA

Accessibility & contrast

On white

9.44
#7F166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F166A
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F166A#FFFFFF#000000##FFFFFF
##7F166A1.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3C6C
Deuteranopia (green-blind)
#404C68
Tritanopia (blue-blind)
#861D3F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f166a;
/* rgb */ color: rgb(127, 22, 106);
/* oklch */ color: oklch(41.6% 0.164 338.0);
Tailwind
colors: {
  custom: {
    50: '#a86295',
    500: '#7f166a',
    950: '#000000',
  },
}
SCSS
$custom: #7f166a;
$custom-light: #a86295;
$custom-dark: #000000;
JSON
{
  "hex": "#7f166a",
  "rgb": {
    "r": 127,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 312,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41604,
    "c": 0.16366,
    "h": 338
  },
  "luminance": 0.06126
}

Semantic roles & 50–950 ramp

primary
#7F166A
secondary
#3DB455
accent
#ED5E3B
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F166A

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

Preview Lab → · Contrast checker → · Palette generator →

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