#7E216A#7E216A

#7E216A is a dark, vivid pink. Relative luminance 0.066; OKLCH L 42.3% C 0.151 H 337.9°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#7E216A
RGBrgb(126, 33, 106)
HSLhsl(313, 58%, 31%)
HSVhsv(313, 74%, 49%)
CMYKcmyk(0%, 73.8%, 15.9%, 50.6%)
CIE-LABlab(30.80, 47.37, -20.93)
CIE-LCHlch(30.80, 51.79, 336.16°)
OKLaboklab(42.34% 0.14 -0.0568)
OKLCHoklch(42.34% 0.151 337.9)
XYZxyz(11.7498, 6.5650, 14.2812)
Luminance0.0656 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E216A #217E35
analogous
#63217E #7E216A #7E213B
triadic
#7E216A #6A7E21 #216A7E
tetradic
#7E216A #7E6321 #217E35 #213B7E
square
#7E216A #7E6321 #217E35 #213B7E
split-complementary
#7E216A #3B7E21 #217E63
monochromatic
#1D0818 #4E1441 #7E216A #AE2E93 #D04AB3

Accessibility & contrast

On white

9.08
#7E216A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7E216A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E216A
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E216A#FFFFFF#000000##FFFFFF
##7E216A1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#253F6C
Deuteranopia (green-blind)
#434E68
Tritanopia (blue-blind)
#852643
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e216a;
/* rgb */ color: rgb(126, 33, 106);
/* oklch */ color: oklch(42.3% 0.151 337.9);
Tailwind
colors: {
  custom: {
    50: '#a76695',
    500: '#7e216a',
    950: '#000000',
  },
}
SCSS
$custom: #7e216a;
$custom-light: #a76695;
$custom-dark: #000000;
JSON
{
  "hex": "#7e216a",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 106
  },
  "hsl": {
    "h": 312.903,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42336,
    "c": 0.15106,
    "h": 337.9
  },
  "luminance": 0.06564
}

Semantic roles & 50–950 ramp

primary
#7E216A
secondary
#4AB160
accent
#E26846
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E216A

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

Preview Lab → · Contrast checker → · Palette generator →

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