#7E217D#7E217D

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

Color values

HEX#7E217D
RGBrgb(126, 33, 125)
HSLhsl(301, 58%, 31%)
HSVhsv(301, 74%, 49%)
CMYKcmyk(0%, 73.8%, 0.8%, 50.6%)
CIE-LABlab(31.82, 50.51, -31.38)
CIE-LCHlch(31.82, 59.46, 328.14°)
OKLaboklab(43.41% 0.1414 -0.0868)
OKLCHoklch(43.41% 0.166 328.4)
XYZxyz(12.8496, 7.0049, 20.0734)
Luminance0.0700 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E217D #217E22
analogous
#50217E #7E217D #7E214E
triadic
#7E217D #7D7E21 #217D7E
tetradic
#7E217D #7E5021 #217E22 #214E7E
square
#7E217D #7E5021 #217E22 #214E7E
split-complementary
#7E217D #4E7E21 #217E50
monochromatic
#1D081D #4E144D #7E217D #AE2EAD #D04ACE

Accessibility & contrast

On white

8.75
#7E217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E217D
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E217D#FFFFFF#000000##FFFFFF
##7E217D1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e217d;
/* rgb */ color: rgb(126, 33, 125);
/* oklch */ color: oklch(43.4% 0.166 328.4);
Tailwind
colors: {
  custom: {
    50: '#a766a3',
    500: '#7e217d',
    950: '#000000',
  },
}
SCSS
$custom: #7e217d;
$custom-light: #a766a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e217d",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 300.645,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43405,
    "c": 0.16592,
    "h": 328.4
  },
  "luminance": 0.07004
}

Semantic roles & 50–950 ramp

primary
#7E217D
secondary
#4AB14B
accent
#E24846
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E217D

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

Preview Lab → · Contrast checker → · Palette generator →

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