#7E216B#7E216B

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

Color values

HEX#7E216B
RGBrgb(126, 33, 107)
HSLhsl(312, 58%, 31%)
HSVhsv(312, 74%, 49%)
CMYKcmyk(0%, 73.8%, 15.1%, 50.6%)
CIE-LABlab(30.85, 47.53, -21.50)
CIE-LCHlch(30.85, 52.16, 335.66°)
OKLaboklab(42.39% 0.1401 -0.0584)
OKLCHoklch(42.39% 0.152 337.4)
XYZxyz(11.8021, 6.5860, 14.5567)
Luminance0.0659 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E216B #217E34
analogous
#62217E #7E216B #7E213C
triadic
#7E216B #6B7E21 #216B7E
tetradic
#7E216B #7E6221 #217E34 #213C7E
square
#7E216B #7E6221 #217E34 #213C7E
split-complementary
#7E216B #3C7E21 #217E62
monochromatic
#1D0819 #4E1442 #7E216B #AE2E94 #D04AB4

Accessibility & contrast

On white

9.06
#7E216B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7E216B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E216B
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E216B#FFFFFF#000000##FFFFFF
##7E216B1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#243F6D
Deuteranopia (green-blind)
#434E69
Tritanopia (blue-blind)
#852643
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e216b;
/* rgb */ color: rgb(126, 33, 107);
/* oklch */ color: oklch(42.4% 0.152 337.4);
Tailwind
colors: {
  custom: {
    50: '#a76695',
    500: '#7e216b',
    950: '#000000',
  },
}
SCSS
$custom: #7e216b;
$custom-light: #a76695;
$custom-dark: #000000;
JSON
{
  "hex": "#7e216b",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 107
  },
  "hsl": {
    "h": 312.258,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42388,
    "c": 0.15179,
    "h": 337.4
  },
  "luminance": 0.06585
}

Semantic roles & 50–950 ramp

primary
#7E216B
secondary
#4AB15F
accent
#E26646
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E216B

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

Preview Lab → · Contrast checker → · Palette generator →

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