#7E216E#7E216E

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

Color values

HEX#7E216E
RGBrgb(126, 33, 110)
HSLhsl(310, 58%, 31%)
HSVhsv(310, 74%, 49%)
CMYKcmyk(0%, 73.8%, 12.7%, 50.6%)
CIE-LABlab(31.00, 48.00, -23.18)
CIE-LCHlch(31.00, 53.30, 334.22°)
OKLaboklab(42.55% 0.1405 -0.0632)
OKLCHoklch(42.55% 0.154 335.8)
XYZxyz(11.9627, 6.6502, 15.4024)
Luminance0.0665 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E216E #217E31
analogous
#5F217E #7E216E #7E213F
triadic
#7E216E #6E7E21 #216E7E
tetradic
#7E216E #7E5F21 #217E31 #213F7E
square
#7E216E #7E5F21 #217E31 #213F7E
split-complementary
#7E216E #3F7E21 #217E5F
monochromatic
#1D0819 #4E1444 #7E216E #AE2E98 #D04AB9

Accessibility & contrast

On white

9.01
#7E216E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E216E
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E216E#FFFFFF#000000##FFFFFF
##7E216E1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e216e;
/* rgb */ color: rgb(126, 33, 110);
/* oklch */ color: oklch(42.5% 0.154 335.8);
Tailwind
colors: {
  custom: {
    50: '#a76698',
    500: '#7e216e',
    950: '#000000',
  },
}
SCSS
$custom: #7e216e;
$custom-light: #a76698;
$custom-dark: #000000;
JSON
{
  "hex": "#7e216e",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 110
  },
  "hsl": {
    "h": 310.323,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42548,
    "c": 0.15403,
    "h": 335.8
  },
  "luminance": 0.06649
}

Semantic roles & 50–950 ramp

primary
#7E216E
secondary
#4AB15C
accent
#E26146
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E216E

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

Preview Lab → · Contrast checker → · Palette generator →

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