#7C217A#7C217A

#7C217A is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.9% C 0.162 H 328.9°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#7C217A
RGBrgb(124, 33, 122)
HSLhsl(301, 58%, 31%)
HSVhsv(301, 73%, 49%)
CMYKcmyk(0%, 73.4%, 1.6%, 51.4%)
CIE-LABlab(31.30, 49.51, -30.34)
CIE-LCHlch(31.30, 58.06, 328.50°)
OKLaboklab(42.91% 0.139 -0.0839)
OKLCHoklch(42.91% 0.162 328.9)
XYZxyz(12.3688, 6.7788, 19.0656)
Luminance0.0678 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C217A #217C23
analogous
#50217C #7C217A #7C214C
triadic
#7C217A #7A7C21 #217A7C
tetradic
#7C217A #7C5021 #217C23 #214C7C
square
#7C217A #7C5021 #217C23 #214C7C
split-complementary
#7C217A #4C7C21 #217C50
monochromatic
#1B071B #4C144A #7C217A #AC2EAA #CF49CC

Accessibility & contrast

On white

8.91
#7C217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7C217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C217A
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C217A#FFFFFF#000000##FFFFFF
##7C217A1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14427C
Deuteranopia (green-blind)
#3A4E78
Tritanopia (blue-blind)
#802E4B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7c217a;
/* rgb */ color: rgb(124, 33, 122);
/* oklch */ color: oklch(42.9% 0.162 328.9);
Tailwind
colors: {
  custom: {
    50: '#a566a1',
    500: '#7c217a',
    950: '#000000',
  },
}
SCSS
$custom: #7c217a;
$custom-light: #a566a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c217a",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 301.319,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42909,
    "c": 0.16238,
    "h": 328.9
  },
  "luminance": 0.06778
}

Semantic roles & 50–950 ramp

primary
#7C217A
secondary
#4AAF4C
accent
#E14A47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7C217A

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

Preview Lab → · Contrast checker → · Palette generator →

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