#7F216E#7F216E

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

Color values

HEX#7F216E
RGBrgb(127, 33, 110)
HSLhsl(311, 59%, 31%)
HSVhsv(311, 74%, 50%)
CMYKcmyk(0%, 74%, 13.4%, 50.2%)
CIE-LABlab(31.18, 48.26, -22.89)
CIE-LCHlch(31.18, 53.41, 334.63°)
OKLaboklab(42.71% 0.1415 -0.0623)
OKLCHoklch(42.71% 0.155 336.2)
XYZxyz(12.1109, 6.7266, 15.4094)
Luminance0.0673 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F216E #217F32
analogous
#61217F #7F216E #7F213F
triadic
#7F216E #6E7F21 #216E7F
tetradic
#7F216E #7F6121 #217F32 #213F7F
square
#7F216E #7F6121 #217F32 #213F7F
split-complementary
#7F216E #3F7F21 #217F61
monochromatic
#1E081A #4E1444 #7F216E #B02E98 #D04AB8

Accessibility & contrast

On white

8.95
#7F216E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F216E
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F216E#FFFFFF#000000##FFFFFF
##7F216E1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224070
Deuteranopia (green-blind)
#434E6C
Tritanopia (blue-blind)
#862745
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f216e;
/* rgb */ color: rgb(127, 33, 110);
/* oklch */ color: oklch(42.7% 0.155 336.2);
Tailwind
colors: {
  custom: {
    50: '#a76698',
    500: '#7f216e',
    950: '#000000',
  },
}
SCSS
$custom: #7f216e;
$custom-light: #a76698;
$custom-dark: #000000;
JSON
{
  "hex": "#7f216e",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 110
  },
  "hsl": {
    "h": 310.851,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42711,
    "c": 0.15466,
    "h": 336.2
  },
  "luminance": 0.06726
}

Semantic roles & 50–950 ramp

primary
#7F216E
secondary
#4AB25D
accent
#E26246
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F216E

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

Preview Lab → · Contrast checker → · Palette generator →

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