#7D217D#7D217D

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

Color values

HEX#7D217D
RGBrgb(125, 33, 125)
HSLhsl(300, 58%, 31%)
HSVhsv(300, 74%, 49%)
CMYKcmyk(0%, 73.6%, 0%, 51%)
CIE-LABlab(31.65, 50.27, -31.67)
CIE-LCHlch(31.65, 59.41, 327.79°)
OKLaboklab(43.25% 0.1402 -0.0877)
OKLCHoklch(43.25% 0.165 328)
XYZxyz(12.7028, 6.9293, 20.0665)
Luminance0.0693 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D217D #217D21
analogous
#4F217D #7D217D #7D214F
triadic
#7D217D #7D7D21 #217D7D
tetradic
#7D217D #7D4F21 #217D21 #214F7D
square
#7D217D #7D4F21 #217D21 #214F7D
split-complementary
#7D217D #4F7D21 #217D4F
monochromatic
#1C071C #4D144D #7D217D #AD2EAD #CF49CF

Accessibility & contrast

On white

8.80
#7D217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7D217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D217D
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D217D#FFFFFF#000000##FFFFFF
##7D217D1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104380
Deuteranopia (green-blind)
#3A4F7B
Tritanopia (blue-blind)
#812F4D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7d217d;
/* rgb */ color: rgb(125, 33, 125);
/* oklch */ color: oklch(43.2% 0.165 328.0);
Tailwind
colors: {
  custom: {
    50: '#a666a3',
    500: '#7d217d',
    950: '#000000',
  },
}
SCSS
$custom: #7d217d;
$custom-light: #a666a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d217d",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 300,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.43248,
    "c": 0.1654,
    "h": 328
  },
  "luminance": 0.06928
}

Semantic roles & 50–950 ramp

primary
#7D217D
secondary
#4AB04A
accent
#E14646
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D217D

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

Preview Lab → · Contrast checker → · Palette generator →

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