#7F156C#7F156C

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

Color values

HEX#7F156C
RGBrgb(127, 21, 108)
HSLhsl(311, 72%, 29%)
HSVhsv(311, 83%, 50%)
CMYKcmyk(0%, 83.5%, 15%, 50.2%)
CIE-LABlab(29.74, 51.75, -23.85)
CIE-LCHlch(29.74, 56.98, 335.26°)
OKLaboklab(41.65% 0.1527 -0.065)
OKLCHoklch(41.65% 0.166 336.9)
XYZxyz(11.7276, 6.1322, 14.7504)
Luminance0.0613 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F156C #157F28
analogous
#5D157F #7F156C #7F1537
triadic
#7F156C #6C7F15 #156C7F
tetradic
#7F156C #7F5D15 #157F28 #15377F
square
#7F156C #7F5D15 #157F28 #15377F
split-complementary
#7F156C #377F15 #157F5D
monochromatic
#1A0416 #4A0C3F #7F156C #B41E99 #DD31BE

Accessibility & contrast

On white

9.43
#7F156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7F156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F156C
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F156C#FFFFFF#000000##FFFFFF
##7F156C1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193C6E
Deuteranopia (green-blind)
#3F4C6A
Tritanopia (blue-blind)
#861D40
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f156c;
/* rgb */ color: rgb(127, 21, 108);
/* oklch */ color: oklch(41.6% 0.166 336.9);
Tailwind
colors: {
  custom: {
    50: '#a86196',
    500: '#7f156c',
    950: '#000000',
  },
}
SCSS
$custom: #7f156c;
$custom-light: #a86196;
$custom-dark: #000000;
JSON
{
  "hex": "#7f156c",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 310.755,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41646,
    "c": 0.16595,
    "h": 336.9
  },
  "luminance": 0.06131
}

Semantic roles & 50–950 ramp

primary
#7F156C
secondary
#3CB451
accent
#EE5A39
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F156C

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

Preview Lab → · Contrast checker → · Palette generator →

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