#7C216D#7C216D

#7C216D is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.2% C 0.152 H 335.4°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#7C216D
RGBrgb(124, 33, 109)
HSLhsl(310, 58%, 31%)
HSVhsv(310, 73%, 49%)
CMYKcmyk(0%, 73.4%, 12.1%, 51.4%)
CIE-LABlab(30.59, 47.32, -23.21)
CIE-LCHlch(30.59, 52.71, 333.88°)
OKLaboklab(42.17% 0.1382 -0.0633)
OKLCHoklch(42.17% 0.152 335.4)
XYZxyz(11.6165, 6.4779, 15.1036)
Luminance0.0648 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C216D #217C30
analogous
#5D217C #7C216D #7C213F
triadic
#7C216D #6D7C21 #216D7C
tetradic
#7C216D #7C5D21 #217C30 #213F7C
square
#7C216D #7C5D21 #217C30 #213F7C
split-complementary
#7C216D #3F7C21 #217C5D
monochromatic
#1B0718 #4C1443 #7C216D #AC2E97 #CF49B8

Accessibility & contrast

On white

9.15
#7C216D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7C216D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C216D
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C216D#FFFFFF#000000##FFFFFF
##7C216D1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213F6F
Deuteranopia (green-blind)
#414D6B
Tritanopia (blue-blind)
#822844
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7c216d;
/* rgb */ color: rgb(124, 33, 109);
/* oklch */ color: oklch(42.2% 0.152 335.4);
Tailwind
colors: {
  custom: {
    50: '#a56597',
    500: '#7c216d',
    950: '#000000',
  },
}
SCSS
$custom: #7c216d;
$custom-light: #a56597;
$custom-dark: #000000;
JSON
{
  "hex": "#7c216d",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 109
  },
  "hsl": {
    "h": 309.89,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42167,
    "c": 0.15202,
    "h": 335.4
  },
  "luminance": 0.06477
}

Semantic roles & 50–950 ramp

primary
#7C216D
secondary
#4AAF5B
accent
#E16047
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7C216D

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

Preview Lab → · Contrast checker → · Palette generator →

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