#7E217E#7E217E

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

Color values

HEX#7E217E
RGBrgb(126, 33, 126)
HSLhsl(300, 58%, 31%)
HSVhsv(300, 74%, 49%)
CMYKcmyk(0%, 73.8%, 0%, 50.6%)
CIE-LABlab(31.88, 50.68, -31.92)
CIE-LCHlch(31.88, 59.89, 327.80°)
OKLaboklab(43.47% 0.1414 -0.0884)
OKLCHoklch(43.47% 0.167 328)
XYZxyz(12.9138, 7.0306, 20.4115)
Luminance0.0703 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E217E #217E21
analogous
#4F217E #7E217E #7E214F
triadic
#7E217E #7E7E21 #217E7E
tetradic
#7E217E #7E4F21 #217E21 #214F7E
square
#7E217E #7E4F21 #217E21 #214F7E
split-complementary
#7E217E #4F7E21 #217E4F
monochromatic
#1D081D #4E144E #7E217E #AE2EAE #D04AD0

Accessibility & contrast

On white

8.73
#7E217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7E217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E217E
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E217E#FFFFFF#000000##FFFFFF
##7E217E1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104381
Deuteranopia (green-blind)
#3A4F7C
Tritanopia (blue-blind)
#822F4D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e217e;
/* rgb */ color: rgb(126, 33, 126);
/* oklch */ color: oklch(43.5% 0.167 328.0);
Tailwind
colors: {
  custom: {
    50: '#a766a4',
    500: '#7e217e',
    950: '#000000',
  },
}
SCSS
$custom: #7e217e;
$custom-light: #a766a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e217e",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 300,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43466,
    "c": 0.16674,
    "h": 328
  },
  "luminance": 0.0703
}

Semantic roles & 50–950 ramp

primary
#7E217E
secondary
#4AB14A
accent
#E24646
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E217E

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

Preview Lab → · Contrast checker → · Palette generator →

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