#7F1566#7F1566

#7F1566 is a dark, vivid pink. Relative luminance 0.060; OKLCH L 41.3% C 0.162 H 340.0°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#7F1566
RGBrgb(127, 21, 102)
HSLhsl(314, 72%, 29%)
HSVhsv(314, 83%, 50%)
CMYKcmyk(0%, 83.5%, 19.7%, 50.2%)
CIE-LABlab(29.43, 50.88, -20.46)
CIE-LCHlch(29.43, 54.84, 338.09°)
OKLaboklab(41.32% 0.1521 -0.0553)
OKLCHoklch(41.32% 0.162 340)
XYZxyz(11.4192, 6.0088, 13.1262)
Luminance0.0601 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1566 #157F2E
analogous
#63157F #7F1566 #7F1531
triadic
#7F1566 #667F15 #15667F
tetradic
#7F1566 #7F6315 #157F2E #15317F
square
#7F1566 #7F6315 #157F2E #15317F
split-complementary
#7F1566 #317F15 #157F63
monochromatic
#1A0415 #4A0C3C #7F1566 #B41E90 #DD31B5

Accessibility & contrast

On white

9.54
#7F1566 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#7F1566 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1566
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1566#FFFFFF#000000##FFFFFF
##7F15661.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3B68
Deuteranopia (green-blind)
#424B64
Tritanopia (blue-blind)
#87193D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7f1566;
/* rgb */ color: rgb(127, 21, 102);
/* oklch */ color: oklch(41.3% 0.162 340.0);
Tailwind
colors: {
  custom: {
    50: '#a86192',
    500: '#7f1566',
    950: '#000000',
  },
}
SCSS
$custom: #7f1566;
$custom-light: #a86192;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1566",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 102
  },
  "hsl": {
    "h": 314.151,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41324,
    "c": 0.16185,
    "h": 340
  },
  "luminance": 0.06008
}

Semantic roles & 50–950 ramp

primary
#7F1566
secondary
#3CB458
accent
#EE6439
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060D
muted
#7F7A7D

Preview Lab

Preview with #7F1566

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

Preview Lab → · Contrast checker → · Palette generator →

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