#7C217E#7C217E

#7C217E is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.2% C 0.166 H 327.1°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#7C217E
RGBrgb(124, 33, 126)
HSLhsl(299, 58%, 31%)
HSVhsv(299, 74%, 49%)
CMYKcmyk(1.6%, 73.8%, 0%, 50.6%)
CIE-LABlab(31.53, 50.21, -32.49)
CIE-LCHlch(31.53, 59.80, 327.10°)
OKLaboklab(43.15% 0.1391 -0.0901)
OKLCHoklch(43.15% 0.166 327.1)
XYZxyz(12.6217, 6.8800, 20.3978)
Luminance0.0688 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C217E #237E21
analogous
#4D217E #7C217E #7E2151
triadic
#7C217E #7E7C21 #217E7C
tetradic
#7C217E #7E4D21 #237E21 #21517E
square
#7C217E #7E4D21 #237E21 #21517E
split-complementary
#7C217E #517E21 #217E4D
monochromatic
#1D081D #4C144E #7C217E #AC2EAE #CD4AD0

Accessibility & contrast

On white

8.84
#7C217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7C217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C217E
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C217E#FFFFFF#000000##FFFFFF
##7C217E1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4381
Deuteranopia (green-blind)
#384E7C
Tritanopia (blue-blind)
#80304D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7c217e;
/* rgb */ color: rgb(124, 33, 126);
/* oklch */ color: oklch(43.2% 0.166 327.1);
Tailwind
colors: {
  custom: {
    50: '#a566a4',
    500: '#7c217e',
    950: '#000000',
  },
}
SCSS
$custom: #7c217e;
$custom-light: #a566a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c217e",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 298.71,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43152,
    "c": 0.16571,
    "h": 327.1
  },
  "luminance": 0.06879
}

Semantic roles & 50–950 ramp

primary
#7C217E
secondary
#4CB14A
accent
#E24649
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C217E

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

Preview Lab → · Contrast checker → · Palette generator →

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