#7E166A#7E166A

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

Color values

HEX#7E166A
RGBrgb(126, 22, 106)
HSLhsl(312, 70%, 29%)
HSVhsv(312, 83%, 49%)
CMYKcmyk(0%, 82.5%, 15.9%, 50.6%)
CIE-LABlab(29.54, 50.95, -22.89)
CIE-LCHlch(29.54, 55.86, 335.80°)
OKLaboklab(41.43% 0.1507 -0.0623)
OKLCHoklch(41.43% 0.163 337.5)
XYZxyz(11.4929, 6.0512, 14.1956)
Luminance0.0605 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E166A #167E2A
analogous
#5E167E #7E166A #7E1636
triadic
#7E166A #6A7E16 #166A7E
tetradic
#7E166A #7E5E16 #167E2A #16367E
square
#7E166A #7E5E16 #167E2A #16367E
split-complementary
#7E166A #367E16 #167E5E
monochromatic
#1A0516 #4A0D3E #7E166A #B21F96 #DB33BB

Accessibility & contrast

On white

9.50
#7E166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#7E166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E166A
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E166A#FFFFFF#000000##FFFFFF
##7E166A1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e166a;
/* rgb */ color: rgb(126, 22, 106);
/* oklch */ color: oklch(41.4% 0.163 337.5);
Tailwind
colors: {
  custom: {
    50: '#a76195',
    500: '#7e166a',
    950: '#000000',
  },
}
SCSS
$custom: #7e166a;
$custom-light: #a76195;
$custom-dark: #000000;
JSON
{
  "hex": "#7e166a",
  "rgb": {
    "r": 126,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 311.538,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41432,
    "c": 0.16309,
    "h": 337.5
  },
  "luminance": 0.0605
}

Semantic roles & 50–950 ramp

primary
#7E166A
secondary
#3DB354
accent
#ED5D3B
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E166A

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

Preview Lab → · Contrast checker → · Palette generator →

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