#7E216C#7E216C

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

Color values

HEX#7E216C
RGBrgb(126, 33, 108)
HSLhsl(312, 58%, 31%)
HSVhsv(312, 74%, 49%)
CMYKcmyk(0%, 73.8%, 14.3%, 50.6%)
CIE-LABlab(30.90, 47.68, -22.06)
CIE-LCHlch(30.90, 52.54, 335.17°)
OKLaboklab(42.44% 0.1402 -0.06)
OKLCHoklch(42.44% 0.153 336.8)
XYZxyz(11.8550, 6.6071, 14.8354)
Luminance0.0661 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E216C #217E33
analogous
#61217E #7E216C #7E213D
triadic
#7E216C #6C7E21 #216C7E
tetradic
#7E216C #7E6121 #217E33 #213D7E
square
#7E216C #7E6121 #217E33 #213D7E
split-complementary
#7E216C #3D7E21 #217E61
monochromatic
#1D0819 #4E1442 #7E216C #AE2E96 #D04AB6

Accessibility & contrast

On white

9.05
#7E216C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E216C
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E216C#FFFFFF#000000##FFFFFF
##7E216C1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23406E
Deuteranopia (green-blind)
#434E6A
Tritanopia (blue-blind)
#852744
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e216c;
/* rgb */ color: rgb(126, 33, 108);
/* oklch */ color: oklch(42.4% 0.153 336.8);
Tailwind
colors: {
  custom: {
    50: '#a76696',
    500: '#7e216c',
    950: '#000000',
  },
}
SCSS
$custom: #7e216c;
$custom-light: #a76696;
$custom-dark: #000000;
JSON
{
  "hex": "#7e216c",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 108
  },
  "hsl": {
    "h": 311.613,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42441,
    "c": 0.15254,
    "h": 336.8
  },
  "luminance": 0.06606
}

Semantic roles & 50–950 ramp

primary
#7E216C
secondary
#4AB15E
accent
#E26446
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E216C

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

Preview Lab → · Contrast checker → · Palette generator →

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