#7E218E#7E218E

#7E218E is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.5% C 0.180 H 321.3°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#7E218E
RGBrgb(126, 33, 142)
HSLhsl(291, 62%, 34%)
HSVhsv(291, 77%, 56%)
CMYKcmyk(11.3%, 76.8%, 0%, 44.3%)
CIE-LABlab(32.87, 53.60, -40.28)
CIE-LCHlch(32.87, 67.05, 323.08°)
OKLaboklab(44.49% 0.1407 -0.1128)
OKLCHoklch(44.49% 0.18 321.3)
XYZxyz(14.0300, 7.4771, 26.2902)
Luminance0.0748 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E218E #318E21
analogous
#48218E #7E218E #8E2168
triadic
#7E218E #8E7E21 #218E7E
tetradic
#7E218E #8E4821 #318E21 #21688E
square
#7E218E #8E4821 #318E21 #21688E
split-complementary
#7E218E #688E21 #218E48
monochromatic
#260A2B #52155C #7E218E #AA2DC0 #C352D7

Accessibility & contrast

On white

8.42
#7E218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7E218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E218E
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E218E#FFFFFF#000000##FFFFFF
##7E218E1.008.422.508.42
#FFFFFF8.421.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#2F518C
Tritanopia (blue-blind)
#7F3756
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e218e;
/* rgb */ color: rgb(126, 33, 142);
/* oklch */ color: oklch(44.5% 0.180 321.3);
Tailwind
colors: {
  custom: {
    50: '#a767b0',
    500: '#7e218e',
    950: '#000000',
  },
}
SCSS
$custom: #7e218e;
$custom-light: #a767b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e218e",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 291.193,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44493,
    "c": 0.1803,
    "h": 321.3
  },
  "luminance": 0.07476
}

Semantic roles & 50–950 ramp

primary
#7E218E
secondary
#60BA50
accent
#E5425A
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E218E

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

Preview Lab → · Contrast checker → · Palette generator →

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