#7F166D#7F166D

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

Color values

HEX#7F166D
RGBrgb(127, 22, 109)
HSLhsl(310, 70%, 29%)
HSVhsv(310, 83%, 50%)
CMYKcmyk(0%, 82.7%, 14.2%, 50.2%)
CIE-LABlab(29.89, 51.63, -24.26)
CIE-LCHlch(29.89, 57.05, 334.83°)
OKLaboklab(41.77% 0.152 -0.0662)
OKLCHoklch(41.77% 0.166 336.5)
XYZxyz(11.7998, 6.1911, 15.0386)
Luminance0.0619 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F166D #167F28
analogous
#5D167F #7F166D #7F1639
triadic
#7F166D #6D7F16 #166D7F
tetradic
#7F166D #7F5D16 #167F28 #16397F
square
#7F166D #7F5D16 #167F28 #16397F
split-complementary
#7F166D #397F16 #167F5D
monochromatic
#1A0516 #4B0D40 #7F166D #B31F9A #DC34BF

Accessibility & contrast

On white

9.38
#7F166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F166D
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F166D#FFFFFF#000000##FFFFFF
##7F166D1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f166d;
/* rgb */ color: rgb(127, 22, 109);
/* oklch */ color: oklch(41.8% 0.166 336.5);
Tailwind
colors: {
  custom: {
    50: '#a86297',
    500: '#7f166d',
    950: '#000000',
  },
}
SCSS
$custom: #7f166d;
$custom-light: #a86297;
$custom-dark: #000000;
JSON
{
  "hex": "#7f166d",
  "rgb": {
    "r": 127,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 310.286,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41768,
    "c": 0.16576,
    "h": 336.5
  },
  "luminance": 0.0619
}

Semantic roles & 50–950 ramp

primary
#7F166D
secondary
#3DB451
accent
#ED593B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F166D

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

Preview Lab → · Contrast checker → · Palette generator →

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