#7E166C#7E166C

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

Color values

HEX#7E166C
RGBrgb(126, 22, 108)
HSLhsl(310, 70%, 29%)
HSVhsv(310, 83%, 49%)
CMYKcmyk(0%, 82.5%, 14.3%, 50.6%)
CIE-LABlab(29.65, 51.25, -24.01)
CIE-LCHlch(29.65, 56.60, 334.89°)
OKLaboklab(41.54% 0.1509 -0.0655)
OKLCHoklch(41.54% 0.164 336.5)
XYZxyz(11.5981, 6.0933, 14.7497)
Luminance0.0609 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E166C #167E28
analogous
#5C167E #7E166C #7E1638
triadic
#7E166C #6C7E16 #166C7E
tetradic
#7E166C #7E5C16 #167E28 #16387E
square
#7E166C #7E5C16 #167E28 #16387E
split-complementary
#7E166C #387E16 #167E5C
monochromatic
#1A0516 #4A0D3F #7E166C #B21F99 #DB33BE

Accessibility & contrast

On white

9.47
#7E166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7E166C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E166C
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E166C#FFFFFF#000000##FFFFFF
##7E166C1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193C6E
Deuteranopia (green-blind)
#3F4B6A
Tritanopia (blue-blind)
#851E41
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e166c;
/* rgb */ color: rgb(126, 22, 108);
/* oklch */ color: oklch(41.5% 0.164 336.5);
Tailwind
colors: {
  custom: {
    50: '#a76196',
    500: '#7e166c',
    950: '#000000',
  },
}
SCSS
$custom: #7e166c;
$custom-light: #a76196;
$custom-dark: #000000;
JSON
{
  "hex": "#7e166c",
  "rgb": {
    "r": 126,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 310.385,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41541,
    "c": 0.16449,
    "h": 336.5
  },
  "luminance": 0.06092
}

Semantic roles & 50–950 ramp

primary
#7E166C
secondary
#3DB351
accent
#ED5A3B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E166C

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

Preview Lab → · Contrast checker → · Palette generator →

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