#7F1168#7F1168

#7F1168 is a dark, vivid pink. Relative luminance 0.059; OKLCH L 41.2% C 0.167 H 338.9°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#7F1168
RGBrgb(127, 17, 104)
HSLhsl(313, 76%, 28%)
HSVhsv(313, 87%, 50%)
CMYKcmyk(0%, 86.6%, 18.1%, 50.2%)
CIE-LABlab(29.19, 52.15, -22.13)
CIE-LCHlch(29.19, 56.66, 337.00°)
OKLaboklab(41.18% 0.1553 -0.0601)
OKLCHoklch(41.18% 0.167 338.9)
XYZxyz(11.4519, 5.9136, 13.6323)
Luminance0.0591 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1168 #117F28
analogous
#5F117F #7F1168 #7F1131
triadic
#7F1168 #687F11 #11687F
tetradic
#7F1168 #7F5F11 #117F28 #11317F
square
#7F1168 #7F5F11 #117F28 #11317F
split-complementary
#7F1168 #317F11 #117F5F
monochromatic
#1B0416 #490A3C #7F1168 #B51894 #E228BB

Accessibility & contrast

On white

9.62
#7F1168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#7F1168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1168
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1168#FFFFFF#000000##FFFFFF
##7F11681.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193A6A
Deuteranopia (green-blind)
#404B66
Tritanopia (blue-blind)
#87183D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7f1168;
/* rgb */ color: rgb(127, 17, 104);
/* oklch */ color: oklch(41.2% 0.167 338.9);
Tailwind
colors: {
  custom: {
    50: '#a86093',
    500: '#7f1168',
    950: '#000000',
  },
}
SCSS
$custom: #7f1168;
$custom-light: #a86093;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1168",
  "rgb": {
    "r": 127,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 312.545,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41184,
    "c": 0.16654,
    "h": 338.9
  },
  "luminance": 0.05912
}

Semantic roles & 50–950 ramp

primary
#7F1168
secondary
#37B551
accent
#F35D35
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7F1168

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

Preview Lab → · Contrast checker → · Palette generator →

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