#7F1166#7F1166

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

Color values

HEX#7F1166
RGBrgb(127, 17, 102)
HSLhsl(314, 76%, 28%)
HSVhsv(314, 87%, 50%)
CMYKcmyk(0%, 86.6%, 19.7%, 50.2%)
CIE-LABlab(29.09, 51.87, -21.00)
CIE-LCHlch(29.09, 55.96, 337.96°)
OKLaboklab(41.08% 0.1551 -0.0568)
OKLCHoklch(41.08% 0.165 339.9)
XYZxyz(11.3515, 5.8734, 13.1037)
Luminance0.0587 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1166 #117F2A
analogous
#61117F #7F1166 #7F112F
triadic
#7F1166 #667F11 #11667F
tetradic
#7F1166 #7F6111 #117F2A #112F7F
square
#7F1166 #7F6111 #117F2A #112F7F
split-complementary
#7F1166 #2F7F11 #117F61
monochromatic
#1B0416 #490A3B #7F1166 #B51891 #E228B8

Accessibility & contrast

On white

9.66
#7F1166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#7F1166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1166
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1166#FFFFFF#000000##FFFFFF
##7F11661.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3A68
Deuteranopia (green-blind)
#414B64
Tritanopia (blue-blind)
#87163C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7f1166;
/* rgb */ color: rgb(127, 17, 102);
/* oklch */ color: oklch(41.1% 0.165 339.9);
Tailwind
colors: {
  custom: {
    50: '#a86092',
    500: '#7f1166',
    950: '#000000',
  },
}
SCSS
$custom: #7f1166;
$custom-light: #a86092;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1166",
  "rgb": {
    "r": 127,
    "g": 17,
    "b": 102
  },
  "hsl": {
    "h": 313.636,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41077,
    "c": 0.16521,
    "h": 339.9
  },
  "luminance": 0.05872
}

Semantic roles & 50–950 ramp

primary
#7F1166
secondary
#37B554
accent
#F36035
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10050D
muted
#7F7A7D

Preview Lab

Preview with #7F1166

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

Preview Lab → · Contrast checker → · Palette generator →

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