#7F156D#7F156D

#7F156D is a dark, vivid pink. Relative luminance 0.062; OKLCH L 41.7% C 0.167 H 336.4°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#7F156D
RGBrgb(127, 21, 109)
HSLhsl(310, 72%, 29%)
HSVhsv(310, 83%, 50%)
CMYKcmyk(0%, 83.5%, 14.2%, 50.2%)
CIE-LABlab(29.80, 51.90, -24.41)
CIE-LCHlch(29.80, 57.35, 334.81°)
OKLaboklab(41.7% 0.1528 -0.0666)
OKLCHoklch(41.7% 0.167 336.4)
XYZxyz(11.7811, 6.1536, 15.0323)
Luminance0.0615 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F156D #157F27
analogous
#5C157F #7F156D #7F1538
triadic
#7F156D #6D7F15 #156D7F
tetradic
#7F156D #7F5C15 #157F27 #15387F
square
#7F156D #7F5C15 #157F27 #15387F
split-complementary
#7F156D #387F15 #157F5C
monochromatic
#1A0417 #4A0C40 #7F156D #B41E9A #DD31C0

Accessibility & contrast

On white

9.42
#7F156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F156D
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F156D#FFFFFF#000000##FFFFFF
##7F156D1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183C6F
Deuteranopia (green-blind)
#3F4C6B
Tritanopia (blue-blind)
#861E41
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f156d;
/* rgb */ color: rgb(127, 21, 109);
/* oklch */ color: oklch(41.7% 0.167 336.4);
Tailwind
colors: {
  custom: {
    50: '#a86197',
    500: '#7f156d',
    950: '#000000',
  },
}
SCSS
$custom: #7f156d;
$custom-light: #a86197;
$custom-dark: #000000;
JSON
{
  "hex": "#7f156d",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 310.189,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41702,
    "c": 0.16666,
    "h": 336.4
  },
  "luminance": 0.06152
}

Semantic roles & 50–950 ramp

primary
#7F156D
secondary
#3CB450
accent
#EE5839
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F156D

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

Preview Lab → · Contrast checker → · Palette generator →

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