#7F156A#7F156A

#7F156A is a dark, vivid pink. Relative luminance 0.061; OKLCH L 41.5% C 0.165 H 337.9°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#7F156A
RGBrgb(127, 21, 106)
HSLhsl(312, 72%, 29%)
HSVhsv(312, 83%, 50%)
CMYKcmyk(0%, 83.5%, 16.5%, 50.2%)
CIE-LABlab(29.64, 51.46, -22.73)
CIE-LCHlch(29.64, 56.25, 336.17°)
OKLaboklab(41.54% 0.1525 -0.0618)
OKLCHoklch(41.54% 0.165 337.9)
XYZxyz(11.6224, 6.0901, 14.1963)
Luminance0.0609 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F156A #157F2A
analogous
#5F157F #7F156A #7F1535
triadic
#7F156A #6A7F15 #156A7F
tetradic
#7F156A #7F5F15 #157F2A #15357F
square
#7F156A #7F5F15 #157F2A #15357F
split-complementary
#7F156A #357F15 #157F5F
monochromatic
#1A0416 #4A0C3E #7F156A #B41E96 #DD31BB

Accessibility & contrast

On white

9.47
#7F156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7F156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F156A
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F156A#FFFFFF#000000##FFFFFF
##7F156A1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3C6C
Deuteranopia (green-blind)
#404C68
Tritanopia (blue-blind)
#861C3F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f156a;
/* rgb */ color: rgb(127, 21, 106);
/* oklch */ color: oklch(41.5% 0.165 337.9);
Tailwind
colors: {
  custom: {
    50: '#a86195',
    500: '#7f156a',
    950: '#000000',
  },
}
SCSS
$custom: #7f156a;
$custom-light: #a86195;
$custom-dark: #000000;
JSON
{
  "hex": "#7f156a",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 311.887,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41537,
    "c": 0.16456,
    "h": 337.9
  },
  "luminance": 0.06089
}

Semantic roles & 50–950 ramp

primary
#7F156A
secondary
#3CB454
accent
#EE5D39
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F156A

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

Preview Lab → · Contrast checker → · Palette generator →

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