#7D217A#7D217A

#7D217A is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.1% C 0.163 H 329.4°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#7D217A
RGBrgb(125, 33, 122)
HSLhsl(302, 58%, 31%)
HSVhsv(302, 74%, 49%)
CMYKcmyk(0%, 73.6%, 2.4%, 51%)
CIE-LABlab(31.47, 49.75, -30.06)
CIE-LCHlch(31.47, 58.12, 328.86°)
OKLaboklab(43.07% 0.1402 -0.083)
OKLCHoklch(43.07% 0.163 329.4)
XYZxyz(12.5141, 6.8538, 19.0724)
Luminance0.0685 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D217A #217D24
analogous
#52217D #7D217A #7D214C
triadic
#7D217A #7A7D21 #217A7D
tetradic
#7D217A #7D5221 #217D24 #214C7D
square
#7D217A #7D5221 #217D24 #214C7D
split-complementary
#7D217A #4C7D21 #217D52
monochromatic
#1C071B #4D144B #7D217A #AD2EA9 #CF49CB

Accessibility & contrast

On white

8.86
#7D217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D217A
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D217A#FFFFFF#000000##FFFFFF
##7D217A1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15427C
Deuteranopia (green-blind)
#3B4E78
Tritanopia (blue-blind)
#822E4B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7d217a;
/* rgb */ color: rgb(125, 33, 122);
/* oklch */ color: oklch(43.1% 0.163 329.4);
Tailwind
colors: {
  custom: {
    50: '#a666a1',
    500: '#7d217a',
    950: '#000000',
  },
}
SCSS
$custom: #7d217a;
$custom-light: #a666a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d217a",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 301.957,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.43067,
    "c": 0.16292,
    "h": 329.4
  },
  "luminance": 0.06853
}

Semantic roles & 50–950 ramp

primary
#7D217A
secondary
#4AB04D
accent
#E14B46
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7D217A

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

Preview Lab → · Contrast checker → · Palette generator →

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