#7E217C#7E217C

#7E217C is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.3% C 0.165 H 328.9°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#7E217C
RGBrgb(126, 33, 124)
HSLhsl(301, 58%, 31%)
HSVhsv(301, 74%, 49%)
CMYKcmyk(0%, 73.8%, 1.6%, 50.6%)
CIE-LABlab(31.76, 50.33, -30.85)
CIE-LCHlch(31.76, 59.03, 328.50°)
OKLaboklab(43.35% 0.1414 -0.0853)
OKLCHoklch(43.35% 0.165 328.9)
XYZxyz(12.7860, 6.9795, 19.7386)
Luminance0.0698 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E217C #217E23
analogous
#51217E #7E217C #7E214D
triadic
#7E217C #7C7E21 #217C7E
tetradic
#7E217C #7E5121 #217E23 #214D7E
square
#7E217C #7E5121 #217E23 #214D7E
split-complementary
#7E217C #4D7E21 #217E51
monochromatic
#1D081D #4E144C #7E217C #AE2EAC #D04ACD

Accessibility & contrast

On white

8.77
#7E217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E217C
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E217C#FFFFFF#000000##FFFFFF
##7E217C1.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13437F
Deuteranopia (green-blind)
#3B4F7A
Tritanopia (blue-blind)
#822E4C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e217c;
/* rgb */ color: rgb(126, 33, 124);
/* oklch */ color: oklch(43.3% 0.165 328.9);
Tailwind
colors: {
  custom: {
    50: '#a766a2',
    500: '#7e217c',
    950: '#000000',
  },
}
SCSS
$custom: #7e217c;
$custom-light: #a766a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e217c",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 301.29,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43345,
    "c": 0.1651,
    "h": 328.9
  },
  "luminance": 0.06979
}

Semantic roles & 50–950 ramp

primary
#7E217C
secondary
#4AB14C
accent
#E24946
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E217C

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

Preview Lab → · Contrast checker → · Palette generator →

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