#7C217F#7C217F

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

Color values

HEX#7C217F
RGBrgb(124, 33, 127)
HSLhsl(298, 59%, 31%)
HSVhsv(298, 74%, 50%)
CMYKcmyk(2.4%, 74%, 0%, 50.2%)
CIE-LABlab(31.59, 50.39, -33.02)
CIE-LCHlch(31.59, 60.24, 326.77°)
OKLaboklab(43.21% 0.1391 -0.0917)
OKLCHoklch(43.21% 0.167 326.6)
XYZxyz(12.6866, 6.9060, 20.7393)
Luminance0.0691 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C217F #247F21
analogous
#4D217F #7C217F #7F2153
triadic
#7C217F #7F7C21 #217F7C
tetradic
#7C217F #7F4D21 #247F21 #21537F
square
#7C217F #7F4D21 #247F21 #21537F
split-complementary
#7C217F #537F21 #217F4D
monochromatic
#1D081E #4D144E #7C217F #AB2EB0 #CC4AD0

Accessibility & contrast

On white

8.82
#7C217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C217F
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C217F#FFFFFF#000000##FFFFFF
##7C217F1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4382
Deuteranopia (green-blind)
#374E7D
Tritanopia (blue-blind)
#7F304E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7c217f;
/* rgb */ color: rgb(124, 33, 127);
/* oklch */ color: oklch(43.2% 0.167 326.6);
Tailwind
colors: {
  custom: {
    50: '#a566a4',
    500: '#7c217f',
    950: '#000000',
  },
}
SCSS
$custom: #7c217f;
$custom-light: #a566a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c217f",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 298.085,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43214,
    "c": 0.16656,
    "h": 326.6
  },
  "luminance": 0.06905
}

Semantic roles & 50–950 ramp

primary
#7C217F
secondary
#4DB24A
accent
#E2464B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C217F

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

Preview Lab → · Contrast checker → · Palette generator →

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