#7C217C#7C217C

#7C217C is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.0% C 0.164 H 328.0°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#7C217C
RGBrgb(124, 33, 124)
HSLhsl(300, 58%, 31%)
HSVhsv(300, 73%, 49%)
CMYKcmyk(0%, 73.4%, 0%, 51.4%)
CIE-LABlab(31.41, 49.86, -31.42)
CIE-LCHlch(31.41, 58.93, 327.78°)
OKLaboklab(43.03% 0.1391 -0.087)
OKLCHoklch(43.03% 0.164 328)
XYZxyz(12.4940, 6.8289, 19.7249)
Luminance0.0683 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C217C #217C21
analogous
#4E217C #7C217C #7C214E
triadic
#7C217C #7C7C21 #217C7C
tetradic
#7C217C #7C4E21 #217C21 #214E7C
square
#7C217C #7C4E21 #217C21 #214E7C
split-complementary
#7C217C #4E7C21 #217C4E
monochromatic
#1B071B #4C144C #7C217C #AC2EAC #CF49CF

Accessibility & contrast

On white

8.88
#7C217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7C217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C217C
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C217C#FFFFFF#000000##FFFFFF
##7C217C1.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11427F
Deuteranopia (green-blind)
#394E7A
Tritanopia (blue-blind)
#802F4C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7c217c;
/* rgb */ color: rgb(124, 33, 124);
/* oklch */ color: oklch(43.0% 0.164 328.0);
Tailwind
colors: {
  custom: {
    50: '#a566a2',
    500: '#7c217c',
    950: '#000000',
  },
}
SCSS
$custom: #7c217c;
$custom-light: #a566a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c217c",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 300,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.4303,
    "c": 0.16404,
    "h": 328
  },
  "luminance": 0.06828
}

Semantic roles & 50–950 ramp

primary
#7C217C
secondary
#4AAF4A
accent
#E14747
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C217C

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

Preview Lab → · Contrast checker → · Palette generator →

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