#7F1162#7F1162

#7F1162 is a dark, vivid pink. Relative luminance 0.058; OKLCH L 40.9% C 0.163 H 342.0°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#7F1162
RGBrgb(127, 17, 98)
HSLhsl(316, 76%, 28%)
HSVhsv(316, 87%, 50%)
CMYKcmyk(0%, 86.6%, 22.8%, 50.2%)
CIE-LABlab(28.89, 51.32, -18.71)
CIE-LCHlch(28.89, 54.63, 339.97°)
OKLaboklab(40.87% 0.1546 -0.0503)
OKLCHoklch(40.87% 0.163 342)
XYZxyz(11.1579, 5.7960, 12.0840)
Luminance0.0580 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1162 #117F2E
analogous
#65117F #7F1162 #7F112B
triadic
#7F1162 #627F11 #11627F
tetradic
#7F1162 #7F6511 #117F2E #112B7F
square
#7F1162 #7F6511 #117F2E #112B7F
split-complementary
#7F1162 #2B7F11 #117F65
monochromatic
#1B0415 #490A38 #7F1162 #B5188C #E228B1

Accessibility & contrast

On white

9.73
#7F1162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#7F1162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1162
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1162#FFFFFF#000000##FFFFFF
##7F11621.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3964
Deuteranopia (green-blind)
#424A60
Tritanopia (blue-blind)
#87133A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7f1162;
/* rgb */ color: rgb(127, 17, 98);
/* oklch */ color: oklch(40.9% 0.163 342.0);
Tailwind
colors: {
  custom: {
    50: '#a8608f',
    500: '#7f1162',
    950: '#000000',
  },
}
SCSS
$custom: #7f1162;
$custom-light: #a8608f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1162",
  "rgb": {
    "r": 127,
    "g": 17,
    "b": 98
  },
  "hsl": {
    "h": 315.818,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.4087,
    "c": 0.16262,
    "h": 342
  },
  "luminance": 0.05795
}

Semantic roles & 50–950 ramp

primary
#7F1162
secondary
#37B558
accent
#F36735
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10050C
muted
#7F7A7D

Preview Lab

Preview with #7F1162

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

Preview Lab → · Contrast checker → · Palette generator →

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