#7F176C#7F176C

#7F176C is a dark, vivid pink. Relative luminance 0.062; OKLCH L 41.8% C 0.164 H 337.0°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#7F176C
RGBrgb(127, 23, 108)
HSLhsl(311, 69%, 29%)
HSVhsv(311, 82%, 50%)
CMYKcmyk(0%, 81.9%, 15%, 50.2%)
CIE-LABlab(29.93, 51.20, -23.55)
CIE-LCHlch(29.93, 56.36, 335.30°)
OKLaboklab(41.78% 0.1511 -0.0642)
OKLCHoklch(41.78% 0.164 337)
XYZxyz(11.7658, 6.2087, 14.7632)
Luminance0.0621 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F176C #177F2A
analogous
#5E177F #7F176C #7F1738
triadic
#7F176C #6C7F17 #176C7F
tetradic
#7F176C #7F5E17 #177F2A #17387F
square
#7F176C #7F5E17 #177F2A #17387F
split-complementary
#7F176C #387F17 #177F5E
monochromatic
#1A0516 #4B0E40 #7F176C #B32098 #DB36BC

Accessibility & contrast

On white

9.37
#7F176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7F176C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F176C
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F176C#FFFFFF#000000##FFFFFF
##7F176C1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3C6E
Deuteranopia (green-blind)
#404C6A
Tritanopia (blue-blind)
#861F41
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f176c;
/* rgb */ color: rgb(127, 23, 108);
/* oklch */ color: oklch(41.8% 0.164 337.0);
Tailwind
colors: {
  custom: {
    50: '#a86296',
    500: '#7f176c',
    950: '#000000',
  },
}
SCSS
$custom: #7f176c;
$custom-light: #a86296;
$custom-dark: #000000;
JSON
{
  "hex": "#7f176c",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 310.962,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.41782,
    "c": 0.16412,
    "h": 337
  },
  "luminance": 0.06208
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F176C

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

Preview Lab → · Contrast checker → · Palette generator →

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