#7C216C#7C216C

#7C216C is a dark, vivid pink. Relative luminance 0.065; OKLCH L 42.1% C 0.151 H 335.9°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#7C216C
RGBrgb(124, 33, 108)
HSLhsl(311, 58%, 31%)
HSVhsv(311, 73%, 49%)
CMYKcmyk(0%, 73.4%, 12.9%, 51.4%)
CIE-LABlab(30.54, 47.16, -22.65)
CIE-LCHlch(30.54, 52.32, 334.35°)
OKLaboklab(42.11% 0.1381 -0.0617)
OKLCHoklch(42.11% 0.151 335.9)
XYZxyz(11.5630, 6.4565, 14.8217)
Luminance0.0646 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C216C #217C31
analogous
#5E217C #7C216C #7C213E
triadic
#7C216C #6C7C21 #216C7C
tetradic
#7C216C #7C5E21 #217C31 #213E7C
square
#7C216C #7C5E21 #217C31 #213E7C
split-complementary
#7C216C #3E7C21 #217C5E
monochromatic
#1B0718 #4C1442 #7C216C #AC2E96 #CF49B7

Accessibility & contrast

On white

9.17
#7C216C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7C216C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C216C
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C216C#FFFFFF#000000##FFFFFF
##7C216C1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223F6E
Deuteranopia (green-blind)
#414D6A
Tritanopia (blue-blind)
#822744
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7c216c;
/* rgb */ color: rgb(124, 33, 108);
/* oklch */ color: oklch(42.1% 0.151 335.9);
Tailwind
colors: {
  custom: {
    50: '#a56596',
    500: '#7c216c',
    950: '#000000',
  },
}
SCSS
$custom: #7c216c;
$custom-light: #a56596;
$custom-dark: #000000;
JSON
{
  "hex": "#7c216c",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 108
  },
  "hsl": {
    "h": 310.549,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42113,
    "c": 0.15126,
    "h": 335.9
  },
  "luminance": 0.06456
}

Semantic roles & 50–950 ramp

primary
#7C216C
secondary
#4AAF5C
accent
#E16247
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7C216C

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

Preview Lab → · Contrast checker → · Palette generator →

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