#7E216D#7E216D

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

Color values

HEX#7E216D
RGBrgb(126, 33, 109)
HSLhsl(311, 58%, 31%)
HSVhsv(311, 74%, 49%)
CMYKcmyk(0%, 73.8%, 13.5%, 50.6%)
CIE-LABlab(30.95, 47.84, -22.62)
CIE-LCHlch(30.95, 52.92, 334.69°)
OKLaboklab(42.49% 0.1404 -0.0616)
OKLCHoklch(42.49% 0.153 336.3)
XYZxyz(11.9085, 6.6285, 15.1173)
Luminance0.0663 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E216D #217E32
analogous
#60217E #7E216D #7E213E
triadic
#7E216D #6D7E21 #216D7E
tetradic
#7E216D #7E6021 #217E32 #213E7E
square
#7E216D #7E6021 #217E32 #213E7E
split-complementary
#7E216D #3E7E21 #217E60
monochromatic
#1D0819 #4E1443 #7E216D #AE2E97 #D04AB7

Accessibility & contrast

On white

9.03
#7E216D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E216D
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E216D#FFFFFF#000000##FFFFFF
##7E216D1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23406F
Deuteranopia (green-blind)
#424E6B
Tritanopia (blue-blind)
#852744
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e216d;
/* rgb */ color: rgb(126, 33, 109);
/* oklch */ color: oklch(42.5% 0.153 336.3);
Tailwind
colors: {
  custom: {
    50: '#a76697',
    500: '#7e216d',
    950: '#000000',
  },
}
SCSS
$custom: #7e216d;
$custom-light: #a76697;
$custom-dark: #000000;
JSON
{
  "hex": "#7e216d",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 109
  },
  "hsl": {
    "h": 310.968,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42494,
    "c": 0.15328,
    "h": 336.3
  },
  "luminance": 0.06627
}

Semantic roles & 50–950 ramp

primary
#7E216D
secondary
#4AB15D
accent
#E26346
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E216D

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

Preview Lab → · Contrast checker → · Palette generator →

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