#7F1562#7F1562

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

Color values

HEX#7F1562
RGBrgb(127, 21, 98)
HSLhsl(316, 72%, 29%)
HSVhsv(316, 83%, 50%)
CMYKcmyk(0%, 83.5%, 22.8%, 50.2%)
CIE-LABlab(29.24, 50.32, -18.17)
CIE-LCHlch(29.24, 53.50, 340.14°)
OKLaboklab(41.12% 0.1516 -0.0488)
OKLCHoklch(41.12% 0.159 342.1)
XYZxyz(11.2256, 5.9314, 12.1066)
Luminance0.0593 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1562 #157F32
analogous
#67157F #7F1562 #7F152D
triadic
#7F1562 #627F15 #15627F
tetradic
#7F1562 #7F6715 #157F32 #152D7F
square
#7F1562 #7F6715 #157F32 #152D7F
split-complementary
#7F1562 #2D7F15 #157F67
monochromatic
#1A0414 #4A0C39 #7F1562 #B41E8B #DD31AE

Accessibility & contrast

On white

9.61
#7F1562 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#7F1562 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1562
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1562#FFFFFF#000000##FFFFFF
##7F15621.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213A64
Deuteranopia (green-blind)
#434B60
Tritanopia (blue-blind)
#87173B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7f1562;
/* rgb */ color: rgb(127, 21, 98);
/* oklch */ color: oklch(41.1% 0.159 342.1);
Tailwind
colors: {
  custom: {
    50: '#a8618f',
    500: '#7f1562',
    950: '#000000',
  },
}
SCSS
$custom: #7f1562;
$custom-light: #a8618f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1562",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 98
  },
  "hsl": {
    "h": 316.415,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41119,
    "c": 0.15923,
    "h": 342.1
  },
  "luminance": 0.0593
}

Semantic roles & 50–950 ramp

primary
#7F1562
secondary
#3CB45D
accent
#EE6B39
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060C
muted
#7F7A7D

Preview Lab

Preview with #7F1562

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

Preview Lab → · Contrast checker → · Palette generator →

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