#7E176B#7E176B

#7E176B is a dark, vivid pink. Relative luminance 0.061; OKLCH L 41.6% C 0.163 H 337.1°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#7E176B
RGBrgb(126, 23, 107)
HSLhsl(311, 69%, 29%)
HSVhsv(311, 82%, 49%)
CMYKcmyk(0%, 81.7%, 15.1%, 50.6%)
CIE-LABlab(29.69, 50.82, -23.30)
CIE-LCHlch(29.69, 55.91, 335.37°)
OKLaboklab(41.56% 0.15 -0.0635)
OKLCHoklch(41.56% 0.163 337.1)
XYZxyz(11.5647, 6.1111, 14.4776)
Luminance0.0611 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E176B #177E2A
analogous
#5E177E #7E176B #7E1738
triadic
#7E176B #6B7E17 #176B7E
tetradic
#7E176B #7E5E17 #177E2A #17387E
square
#7E176B #7E5E17 #177E2A #17387E
split-complementary
#7E176B #387E17 #177E5E
monochromatic
#1A0516 #4A0E3F #7E176B #B22097 #DA35BC

Accessibility & contrast

On white

9.45
#7E176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E176B
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E176B#FFFFFF#000000##FFFFFF
##7E176B1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3C6D
Deuteranopia (green-blind)
#404B69
Tritanopia (blue-blind)
#851E40
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e176b;
/* rgb */ color: rgb(126, 23, 107);
/* oklch */ color: oklch(41.6% 0.163 337.1);
Tailwind
colors: {
  custom: {
    50: '#a76295',
    500: '#7e176b',
    950: '#000000',
  },
}
SCSS
$custom: #7e176b;
$custom-light: #a76295;
$custom-dark: #000000;
JSON
{
  "hex": "#7e176b",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 311.068,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41556,
    "c": 0.16284,
    "h": 337.1
  },
  "luminance": 0.0611
}

Semantic roles & 50–950 ramp

primary
#7E176B
secondary
#3EB354
accent
#EC5C3C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E176B

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

Preview Lab → · Contrast checker → · Palette generator →

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