#7F216D#7F216D

#7F216D is a dark, vivid pink. Relative luminance 0.067; OKLCH L 42.7% C 0.154 H 336.8°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#7F216D
RGBrgb(127, 33, 109)
HSLhsl(311, 59%, 31%)
HSVhsv(311, 74%, 50%)
CMYKcmyk(0%, 74%, 14.2%, 50.2%)
CIE-LABlab(31.13, 48.10, -22.33)
CIE-LCHlch(31.13, 53.03, 335.10°)
OKLaboklab(42.66% 0.1414 -0.0607)
OKLCHoklch(42.66% 0.154 336.8)
XYZxyz(12.0568, 6.7050, 15.1242)
Luminance0.0670 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F216D #217F33
analogous
#62217F #7F216D #7F213E
triadic
#7F216D #6D7F21 #216D7F
tetradic
#7F216D #7F6221 #217F33 #213E7F
square
#7F216D #7F6221 #217F33 #213E7F
split-complementary
#7F216D #3E7F21 #217F62
monochromatic
#1E081A #4E1443 #7F216D #B02E97 #D04AB6

Accessibility & contrast

On white

8.97
#7F216D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7F216D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F216D
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F216D#FFFFFF#000000##FFFFFF
##7F216D1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23406F
Deuteranopia (green-blind)
#434E6B
Tritanopia (blue-blind)
#862744
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f216d;
/* rgb */ color: rgb(127, 33, 109);
/* oklch */ color: oklch(42.7% 0.154 336.8);
Tailwind
colors: {
  custom: {
    50: '#a76697',
    500: '#7f216d',
    950: '#000000',
  },
}
SCSS
$custom: #7f216d;
$custom-light: #a76697;
$custom-dark: #000000;
JSON
{
  "hex": "#7f216d",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 109
  },
  "hsl": {
    "h": 311.489,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42658,
    "c": 0.15392,
    "h": 336.8
  },
  "luminance": 0.06704
}

Semantic roles & 50–950 ramp

primary
#7F216D
secondary
#4AB25E
accent
#E26446
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F216D

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

Preview Lab → · Contrast checker → · Palette generator →

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