#7E217A#7E217A

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

Color values

HEX#7E217A
RGBrgb(126, 33, 122)
HSLhsl(303, 58%, 31%)
HSVhsv(303, 74%, 49%)
CMYKcmyk(0%, 73.8%, 3.2%, 50.6%)
CIE-LABlab(31.65, 49.99, -29.77)
CIE-LCHlch(31.65, 58.18, 329.22°)
OKLaboklab(43.23% 0.1413 -0.0822)
OKLCHoklch(43.23% 0.163 329.8)
XYZxyz(12.6608, 6.9294, 19.0793)
Luminance0.0693 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E217A #217E25
analogous
#53217E #7E217A #7E214B
triadic
#7E217A #7A7E21 #217A7E
tetradic
#7E217A #7E5321 #217E25 #214B7E
square
#7E217A #7E5321 #217E25 #214B7E
split-complementary
#7E217A #4B7E21 #217E53
monochromatic
#1D081C #4E144B #7E217A #AE2EA9 #D04ACA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E217A#FFFFFF#000000##FFFFFF
##7E217A1.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)
#16427C
Deuteranopia (green-blind)
#3C4F78
Tritanopia (blue-blind)
#832D4B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e217a;
/* rgb */ color: rgb(126, 33, 122);
/* oklch */ color: oklch(43.2% 0.163 329.8);
Tailwind
colors: {
  custom: {
    50: '#a766a1',
    500: '#7e217a',
    950: '#000000',
  },
}
SCSS
$custom: #7e217a;
$custom-light: #a766a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e217a",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 302.581,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43226,
    "c": 0.16346,
    "h": 329.8
  },
  "luminance": 0.06928
}

Semantic roles & 50–950 ramp

primary
#7E217A
secondary
#4AB14E
accent
#E24D46
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7E217A

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

Preview Lab → · Contrast checker → · Palette generator →

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