#7C216F#7C216F

#7C216F is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.3% C 0.154 H 334.3°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#7C216F
RGBrgb(124, 33, 111)
HSLhsl(309, 58%, 31%)
HSVhsv(309, 73%, 49%)
CMYKcmyk(0%, 73.4%, 10.5%, 51.4%)
CIE-LABlab(30.69, 47.65, -24.32)
CIE-LCHlch(30.69, 53.50, 332.96°)
OKLaboklab(42.28% 0.1384 -0.0665)
OKLCHoklch(42.28% 0.154 334.3)
XYZxyz(11.7254, 6.5215, 15.6771)
Luminance0.0652 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C216F #217C2E
analogous
#5B217C #7C216F #7C2141
triadic
#7C216F #6F7C21 #216F7C
tetradic
#7C216F #7C5B21 #217C2E #21417C
square
#7C216F #7C5B21 #217C2E #21417C
split-complementary
#7C216F #417C21 #217C5B
monochromatic
#1B0718 #4C1444 #7C216F #AC2E9A #CF49BB

Accessibility & contrast

On white

9.11
#7C216F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C216F
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C216F#FFFFFF#000000##FFFFFF
##7C216F1.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204071
Deuteranopia (green-blind)
#404D6D
Tritanopia (blue-blind)
#822945
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7c216f;
/* rgb */ color: rgb(124, 33, 111);
/* oklch */ color: oklch(42.3% 0.154 334.3);
Tailwind
colors: {
  custom: {
    50: '#a56698',
    500: '#7c216f',
    950: '#000000',
  },
}
SCSS
$custom: #7c216f;
$custom-light: #a56698;
$custom-dark: #000000;
JSON
{
  "hex": "#7c216f",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 111
  },
  "hsl": {
    "h": 308.571,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42276,
    "c": 0.15356,
    "h": 334.3
  },
  "luminance": 0.0652
}

Semantic roles & 50–950 ramp

primary
#7C216F
secondary
#4AAF58
accent
#E15D47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7C216F

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

Preview Lab → · Contrast checker → · Palette generator →

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