#7F216A#7F216A

#7F216A is a dark, vivid pink. Relative luminance 0.066; OKLCH L 42.5% C 0.152 H 338.4°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#7F216A
RGBrgb(127, 33, 106)
HSLhsl(313, 59%, 31%)
HSVhsv(313, 74%, 50%)
CMYKcmyk(0%, 74%, 16.5%, 50.2%)
CIE-LABlab(30.98, 47.64, -20.64)
CIE-LCHlch(30.98, 51.91, 336.57°)
OKLaboklab(42.5% 0.141 -0.0559)
OKLCHoklch(42.5% 0.152 338.4)
XYZxyz(11.8980, 6.6415, 14.2882)
Luminance0.0664 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F216A #217F36
analogous
#65217F #7F216A #7F213B
triadic
#7F216A #6A7F21 #216A7F
tetradic
#7F216A #7F6521 #217F36 #213B7F
square
#7F216A #7F6521 #217F36 #213B7F
split-complementary
#7F216A #3B7F21 #217F65
monochromatic
#1E0819 #4E1441 #7F216A #B02E93 #D04AB2

Accessibility & contrast

On white

9.02
#7F216A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7F216A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F216A
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F216A#FFFFFF#000000##FFFFFF
##7F216A1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25406C
Deuteranopia (green-blind)
#444E68
Tritanopia (blue-blind)
#862543
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f216a;
/* rgb */ color: rgb(127, 33, 106);
/* oklch */ color: oklch(42.5% 0.152 338.4);
Tailwind
colors: {
  custom: {
    50: '#a76695',
    500: '#7f216a',
    950: '#000000',
  },
}
SCSS
$custom: #7f216a;
$custom-light: #a76695;
$custom-dark: #000000;
JSON
{
  "hex": "#7f216a",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 106
  },
  "hsl": {
    "h": 313.404,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42502,
    "c": 0.15172,
    "h": 338.4
  },
  "luminance": 0.0664
}

Semantic roles & 50–950 ramp

primary
#7F216A
secondary
#4AB261
accent
#E26946
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7F216A

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

Preview Lab → · Contrast checker → · Palette generator →

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