#7F166B#7F166B

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

Color values

HEX#7F166B
RGBrgb(127, 22, 107)
HSLhsl(311, 70%, 29%)
HSVhsv(311, 83%, 50%)
CMYKcmyk(0%, 82.7%, 15.7%, 50.2%)
CIE-LABlab(29.78, 51.33, -23.14)
CIE-LCHlch(29.78, 56.31, 335.73°)
OKLaboklab(41.66% 0.1518 -0.063)
OKLCHoklch(41.66% 0.164 337.5)
XYZxyz(11.6934, 6.1485, 14.4780)
Luminance0.0615 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F166B #167F2A
analogous
#5F167F #7F166B #7F1636
triadic
#7F166B #6B7F16 #166B7F
tetradic
#7F166B #7F5F16 #167F2A #16367F
square
#7F166B #7F5F16 #167F2A #16367F
split-complementary
#7F166B #367F16 #167F5F
monochromatic
#1A0516 #4B0D3F #7F166B #B31F97 #DC34BC

Accessibility & contrast

On white

9.42
#7F166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F166B
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F166B#FFFFFF#000000##FFFFFF
##7F166B1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f166b;
/* rgb */ color: rgb(127, 22, 107);
/* oklch */ color: oklch(41.7% 0.164 337.5);
Tailwind
colors: {
  custom: {
    50: '#a86295',
    500: '#7f166b',
    950: '#000000',
  },
}
SCSS
$custom: #7f166b;
$custom-light: #a86295;
$custom-dark: #000000;
JSON
{
  "hex": "#7f166b",
  "rgb": {
    "r": 127,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 311.429,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41658,
    "c": 0.16435,
    "h": 337.5
  },
  "luminance": 0.06147
}

Semantic roles & 50–950 ramp

primary
#7F166B
secondary
#3DB454
accent
#ED5D3B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F166B

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

Preview Lab → · Contrast checker → · Palette generator →

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