#7D217C#7D217C

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

Color values

HEX#7D217C
RGBrgb(125, 33, 124)
HSLhsl(301, 58%, 31%)
HSVhsv(301, 74%, 49%)
CMYKcmyk(0%, 73.6%, 0.8%, 51%)
CIE-LABlab(31.59, 50.09, -31.13)
CIE-LCHlch(31.59, 58.98, 328.14°)
OKLaboklab(43.19% 0.1402 -0.0861)
OKLCHoklch(43.19% 0.165 328.4)
XYZxyz(12.6393, 6.9038, 19.7317)
Luminance0.0690 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D217C #217D22
analogous
#50217D #7D217C #7D214E
triadic
#7D217C #7C7D21 #217C7D
tetradic
#7D217C #7D5021 #217D22 #214E7D
square
#7D217C #7D5021 #217D22 #214E7D
split-complementary
#7D217C #4E7D21 #217D50
monochromatic
#1C071C #4D144C #7D217C #AD2EAC #CF49CE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D217C#FFFFFF#000000##FFFFFF
##7D217C1.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)
#12437F
Deuteranopia (green-blind)
#3A4F7A
Tritanopia (blue-blind)
#812E4C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7d217c;
/* rgb */ color: rgb(125, 33, 124);
/* oklch */ color: oklch(43.2% 0.165 328.4);
Tailwind
colors: {
  custom: {
    50: '#a666a2',
    500: '#7d217c',
    950: '#000000',
  },
}
SCSS
$custom: #7d217c;
$custom-light: #a666a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d217c",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 300.652,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.43187,
    "c": 0.16457,
    "h": 328.4
  },
  "luminance": 0.06903
}

Semantic roles & 50–950 ramp

primary
#7D217C
secondary
#4AB04B
accent
#E14846
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D217C

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

Preview Lab → · Contrast checker → · Palette generator →

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