#7F1266#7F1266

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

Color values

HEX#7F1266
RGBrgb(127, 18, 102)
HSLhsl(314, 75%, 28%)
HSVhsv(314, 86%, 50%)
CMYKcmyk(0%, 85.8%, 19.7%, 50.2%)
CIE-LABlab(29.17, 51.64, -20.87)
CIE-LCHlch(29.17, 55.70, 337.99°)
OKLaboklab(41.14% 0.1544 -0.0565)
OKLCHoklch(41.14% 0.164 339.9)
XYZxyz(11.3673, 5.9051, 13.1090)
Luminance0.0590 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1266 #127F2B
analogous
#61127F #7F1266 #7F1230
triadic
#7F1266 #667F12 #12667F
tetradic
#7F1266 #7F6112 #127F2B #12307F
square
#7F1266 #7F6112 #127F2B #12307F
split-complementary
#7F1266 #307F12 #127F61
monochromatic
#1B0416 #490A3B #7F1266 #B51A91 #E12BB7

Accessibility & contrast

On white

9.63
#7F1266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1266
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1266#FFFFFF#000000##FFFFFF
##7F12661.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f1266;
/* rgb */ color: rgb(127, 18, 102);
/* oklch */ color: oklch(41.1% 0.164 339.9);
Tailwind
colors: {
  custom: {
    50: '#a86092',
    500: '#7f1266',
    950: '#000000',
  },
}
SCSS
$custom: #7f1266;
$custom-light: #a86092;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1266",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 313.761,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41135,
    "c": 0.16442,
    "h": 339.9
  },
  "luminance": 0.05904
}

Semantic roles & 50–950 ramp

primary
#7F1266
secondary
#38B555
accent
#F26136
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10050D
muted
#7F7A7D

Preview Lab

Preview with #7F1266

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

Preview Lab → · Contrast checker → · Palette generator →

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