#7C166B#7C166B

#7C166B is a dark, vivid pink. Relative luminance 0.059; OKLCH L 41.1% C 0.163 H 336.2°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#7C166B
RGBrgb(124, 22, 107)
HSLhsl(310, 70%, 29%)
HSVhsv(310, 82%, 49%)
CMYKcmyk(0%, 82.3%, 13.7%, 51.4%)
CIE-LABlab(29.21, 50.63, -24.08)
CIE-LCHlch(29.21, 56.06, 334.57°)
OKLaboklab(41.14% 0.1488 -0.0657)
OKLCHoklch(41.14% 0.163 336.2)
XYZxyz(11.2531, 5.9215, 14.4574)
Luminance0.0592 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C166B #167C27
analogous
#5A167C #7C166B #7C1638
triadic
#7C166B #6B7C16 #166B7C
tetradic
#7C166B #7C5A16 #167C27 #16387C
square
#7C166B #7C5A16 #167C27 #16387C
split-complementary
#7C166B #387C16 #167C5A
monochromatic
#1A0516 #480D3E #7C166B #B01F98 #DB32BE

Accessibility & contrast

On white

9.62
#7C166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#7C166B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C166B
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C166B#FFFFFF#000000##FFFFFF
##7C166B1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183B6D
Deuteranopia (green-blind)
#3E4A69
Tritanopia (blue-blind)
#831F40
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7c166b;
/* rgb */ color: rgb(124, 22, 107);
/* oklch */ color: oklch(41.1% 0.163 336.2);
Tailwind
colors: {
  custom: {
    50: '#a56195',
    500: '#7c166b',
    950: '#000000',
  },
}
SCSS
$custom: #7c166b;
$custom-light: #a56195;
$custom-dark: #000000;
JSON
{
  "hex": "#7c166b",
  "rgb": {
    "r": 124,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 310,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41143,
    "c": 0.16266,
    "h": 336.2
  },
  "luminance": 0.0592
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C166B

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

Preview Lab → · Contrast checker → · Palette generator →

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