#7E176C#7E176C

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

Color values

HEX#7E176C
RGBrgb(126, 23, 108)
HSLhsl(310, 69%, 29%)
HSVhsv(310, 82%, 49%)
CMYKcmyk(0%, 81.7%, 14.3%, 50.6%)
CIE-LABlab(29.74, 50.97, -23.86)
CIE-LCHlch(29.74, 56.28, 334.91°)
OKLaboklab(41.61% 0.1501 -0.0651)
OKLCHoklch(41.61% 0.164 336.6)
XYZxyz(11.6176, 6.1322, 14.7562)
Luminance0.0613 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E176C #177E29
analogous
#5D177E #7E176C #7E1739
triadic
#7E176C #6C7E17 #176C7E
tetradic
#7E176C #7E5D17 #177E29 #17397E
square
#7E176C #7E5D17 #177E29 #17397E
split-complementary
#7E176C #397E17 #177E5D
monochromatic
#1A0516 #4A0E40 #7E176C #B22098 #DA35BD

Accessibility & contrast

On white

9.43
#7E176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E176C
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E176C#FFFFFF#000000##FFFFFF
##7E176C1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3C6E
Deuteranopia (green-blind)
#3F4B6A
Tritanopia (blue-blind)
#851F41
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e176c;
/* rgb */ color: rgb(126, 23, 108);
/* oklch */ color: oklch(41.6% 0.164 336.6);
Tailwind
colors: {
  custom: {
    50: '#a76296',
    500: '#7e176c',
    950: '#000000',
  },
}
SCSS
$custom: #7e176c;
$custom-light: #a76296;
$custom-dark: #000000;
JSON
{
  "hex": "#7e176c",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 310.485,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41611,
    "c": 0.16356,
    "h": 336.6
  },
  "luminance": 0.06131
}

Semantic roles & 50–950 ramp

primary
#7E176C
secondary
#3EB353
accent
#EC5B3C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E176C

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

Preview Lab → · Contrast checker → · Palette generator →

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