#7F216C#7F216C

#7F216C is a dark, vivid pink. Relative luminance 0.067; OKLCH L 42.6% C 0.153 H 337.3°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#7F216C
RGBrgb(127, 33, 108)
HSLhsl(312, 59%, 31%)
HSVhsv(312, 74%, 50%)
CMYKcmyk(0%, 74%, 15%, 50.2%)
CIE-LABlab(31.08, 47.95, -21.77)
CIE-LCHlch(31.08, 52.65, 335.58°)
OKLaboklab(42.61% 0.1413 -0.0591)
OKLCHoklch(42.61% 0.153 337.3)
XYZxyz(12.0033, 6.6835, 14.8423)
Luminance0.0668 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F216C #217F34
analogous
#63217F #7F216C #7F213D
triadic
#7F216C #6C7F21 #216C7F
tetradic
#7F216C #7F6321 #217F34 #213D7F
square
#7F216C #7F6321 #217F34 #213D7F
split-complementary
#7F216C #3D7F21 #217F63
monochromatic
#1E0819 #4E1443 #7F216C #B02E95 #D04AB5

Accessibility & contrast

On white

8.99
#7F216C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F216C
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F216C#FFFFFF#000000##FFFFFF
##7F216C1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24406E
Deuteranopia (green-blind)
#434E6A
Tritanopia (blue-blind)
#862644
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f216c;
/* rgb */ color: rgb(127, 33, 108);
/* oklch */ color: oklch(42.6% 0.153 337.3);
Tailwind
colors: {
  custom: {
    50: '#a76696',
    500: '#7f216c',
    950: '#000000',
  },
}
SCSS
$custom: #7f216c;
$custom-light: #a76696;
$custom-dark: #000000;
JSON
{
  "hex": "#7f216c",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 108
  },
  "hsl": {
    "h": 312.128,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42606,
    "c": 0.15318,
    "h": 337.3
  },
  "luminance": 0.06682
}

Semantic roles & 50–950 ramp

primary
#7F216C
secondary
#4AB25F
accent
#E26546
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F216C

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

Preview Lab → · Contrast checker → · Palette generator →

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