#7D217F#7D217F

#7D217F is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.4% C 0.167 H 327.1°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#7D217F
RGBrgb(125, 33, 127)
HSLhsl(299, 59%, 31%)
HSVhsv(299, 74%, 50%)
CMYKcmyk(1.6%, 74%, 0%, 50.2%)
CIE-LABlab(31.76, 50.62, -32.74)
CIE-LCHlch(31.76, 60.29, 327.11°)
OKLaboklab(43.37% 0.1402 -0.0908)
OKLCHoklch(43.37% 0.167 327.1)
XYZxyz(12.8319, 6.9809, 20.7461)
Luminance0.0698 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D217F #237F21
analogous
#4E217F #7D217F #7F2152
triadic
#7D217F #7F7D21 #217F7D
tetradic
#7D217F #7F4E21 #237F21 #21527F
square
#7D217F #7F4E21 #237F21 #21527F
split-complementary
#7D217F #527F21 #217F4E
monochromatic
#1D081E #4D144E #7D217F #AD2EB0 #CD4AD0

Accessibility & contrast

On white

8.76
#7D217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7D217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D217F
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D217F#FFFFFF#000000##FFFFFF
##7D217F1.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4382
Deuteranopia (green-blind)
#384F7D
Tritanopia (blue-blind)
#81304E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7d217f;
/* rgb */ color: rgb(125, 33, 127);
/* oklch */ color: oklch(43.4% 0.167 327.1);
Tailwind
colors: {
  custom: {
    50: '#a666a4',
    500: '#7d217f',
    950: '#000000',
  },
}
SCSS
$custom: #7d217f;
$custom-light: #a666a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d217f",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 298.723,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.4337,
    "c": 0.16707,
    "h": 327.1
  },
  "luminance": 0.0698
}

Semantic roles & 50–950 ramp

primary
#7D217F
secondary
#4CB24A
accent
#E24649
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D217F

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

Preview Lab → · Contrast checker → · Palette generator →

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