#7F156B#7F156B

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

Color values

HEX#7F156B
RGBrgb(127, 21, 107)
HSLhsl(311, 72%, 29%)
HSVhsv(311, 83%, 50%)
CMYKcmyk(0%, 83.5%, 15.7%, 50.2%)
CIE-LABlab(29.69, 51.60, -23.29)
CIE-LCHlch(29.69, 56.61, 335.71°)
OKLaboklab(41.59% 0.1526 -0.0634)
OKLCHoklch(41.59% 0.165 337.4)
XYZxyz(11.6747, 6.1110, 14.4718)
Luminance0.0611 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F156B #157F29
analogous
#5E157F #7F156B #7F1536
triadic
#7F156B #6B7F15 #156B7F
tetradic
#7F156B #7F5E15 #157F29 #15367F
square
#7F156B #7F5E15 #157F29 #15367F
split-complementary
#7F156B #367F15 #157F5E
monochromatic
#1A0416 #4A0C3F #7F156B #B41E97 #DD31BD

Accessibility & contrast

On white

9.45
#7F156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F156B
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F156B#FFFFFF#000000##FFFFFF
##7F156B1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3C6D
Deuteranopia (green-blind)
#404C69
Tritanopia (blue-blind)
#861D40
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f156b;
/* rgb */ color: rgb(127, 21, 107);
/* oklch */ color: oklch(41.6% 0.165 337.4);
Tailwind
colors: {
  custom: {
    50: '#a86195',
    500: '#7f156b',
    950: '#000000',
  },
}
SCSS
$custom: #7f156b;
$custom-light: #a86195;
$custom-dark: #000000;
JSON
{
  "hex": "#7f156b",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 311.321,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41591,
    "c": 0.16526,
    "h": 337.4
  },
  "luminance": 0.0611
}

Semantic roles & 50–950 ramp

primary
#7F156B
secondary
#3CB452
accent
#EE5C39
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F156B

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

Preview Lab → · Contrast checker → · Palette generator →

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