#7F166C#7F166C

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

Color values

HEX#7F166C
RGBrgb(127, 22, 108)
HSLhsl(311, 70%, 29%)
HSVhsv(311, 83%, 50%)
CMYKcmyk(0%, 82.7%, 15%, 50.2%)
CIE-LABlab(29.84, 51.48, -23.70)
CIE-LCHlch(29.84, 56.68, 335.28°)
OKLaboklab(41.71% 0.1519 -0.0646)
OKLCHoklch(41.71% 0.165 337)
XYZxyz(11.7463, 6.1697, 14.7567)
Luminance0.0617 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F166C #167F29
analogous
#5E167F #7F166C #7F1638
triadic
#7F166C #6C7F16 #166C7F
tetradic
#7F166C #7F5E16 #167F29 #16387F
square
#7F166C #7F5E16 #167F29 #16387F
split-complementary
#7F166C #387F16 #167F5E
monochromatic
#1A0516 #4B0D40 #7F166C #B31F98 #DC34BD

Accessibility & contrast

On white

9.40
#7F166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F166C
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F166C#FFFFFF#000000##FFFFFF
##7F166C1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f166c;
/* rgb */ color: rgb(127, 22, 108);
/* oklch */ color: oklch(41.7% 0.165 337.0);
Tailwind
colors: {
  custom: {
    50: '#a86296',
    500: '#7f166c',
    950: '#000000',
  },
}
SCSS
$custom: #7f166c;
$custom-light: #a86296;
$custom-dark: #000000;
JSON
{
  "hex": "#7f166c",
  "rgb": {
    "r": 127,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 310.857,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41713,
    "c": 0.16505,
    "h": 337
  },
  "luminance": 0.06169
}

Semantic roles & 50–950 ramp

primary
#7F166C
secondary
#3DB453
accent
#ED5B3B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F166C

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

Preview Lab → · Contrast checker → · Palette generator →

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