#7F216F#7F216F

#7F216F is a dark, vivid pink. Relative luminance 0.067; OKLCH L 42.8% C 0.155 H 335.7°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#7F216F
RGBrgb(127, 33, 111)
HSLhsl(310, 59%, 31%)
HSVhsv(310, 74%, 50%)
CMYKcmyk(0%, 74%, 12.6%, 50.2%)
CIE-LABlab(31.23, 48.42, -23.44)
CIE-LCHlch(31.23, 53.79, 334.16°)
OKLaboklab(42.77% 0.1417 -0.0639)
OKLCHoklch(42.77% 0.155 335.7)
XYZxyz(12.1657, 6.7485, 15.6977)
Luminance0.0675 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F216F #217F31
analogous
#60217F #7F216F #7F2140
triadic
#7F216F #6F7F21 #216F7F
tetradic
#7F216F #7F6021 #217F31 #21407F
square
#7F216F #7F6021 #217F31 #21407F
split-complementary
#7F216F #407F21 #217F60
monochromatic
#1E081A #4E1445 #7F216F #B02E99 #D04AB9

Accessibility & contrast

On white

8.94
#7F216F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7F216F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F216F
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F216F#FFFFFF#000000##FFFFFF
##7F216F1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224071
Deuteranopia (green-blind)
#424F6D
Tritanopia (blue-blind)
#862845
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f216f;
/* rgb */ color: rgb(127, 33, 111);
/* oklch */ color: oklch(42.8% 0.155 335.7);
Tailwind
colors: {
  custom: {
    50: '#a76698',
    500: '#7f216f',
    950: '#000000',
  },
}
SCSS
$custom: #7f216f;
$custom-light: #a76698;
$custom-dark: #000000;
JSON
{
  "hex": "#7f216f",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 111
  },
  "hsl": {
    "h": 310.213,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42765,
    "c": 0.15542,
    "h": 335.7
  },
  "luminance": 0.06747
}

Semantic roles & 50–950 ramp

primary
#7F216F
secondary
#4AB25C
accent
#E26046
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F216F

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

Preview Lab → · Contrast checker → · Palette generator →

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