#7E218F#7E218F

#7E218F is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.6% C 0.181 H 320.9°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#7E218F
RGBrgb(126, 33, 143)
HSLhsl(291, 63%, 35%)
HSVhsv(291, 77%, 56%)
CMYKcmyk(11.9%, 76.9%, 0%, 43.9%)
CIE-LABlab(32.94, 53.79, -40.79)
CIE-LCHlch(32.94, 67.51, 322.83°)
OKLaboklab(44.56% 0.1406 -0.1143)
OKLCHoklch(44.56% 0.181 320.9)
XYZxyz(14.1054, 7.5073, 26.6873)
Luminance0.0751 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E218F #328F21
analogous
#47218F #7E218F #8F2169
triadic
#7E218F #8F7E21 #218F7E
tetradic
#7E218F #8F4721 #328F21 #21698F
square
#7E218F #8F4721 #328F21 #21698F
split-complementary
#7E218F #698F21 #218F47
monochromatic
#260A2C #52165D #7E218F #AA2CC1 #C353D7

Accessibility & contrast

On white

8.40
#7E218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E218F
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E218F#FFFFFF#000000##FFFFFF
##7E218F1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#2E518D
Tritanopia (blue-blind)
#7F3757
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e218f;
/* rgb */ color: rgb(126, 33, 143);
/* oklch */ color: oklch(44.6% 0.181 320.9);
Tailwind
colors: {
  custom: {
    50: '#a767b0',
    500: '#7e218f',
    950: '#000000',
  },
}
SCSS
$custom: #7e218f;
$custom-light: #a767b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e218f",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 290.727,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.4456,
    "c": 0.18117,
    "h": 320.9
  },
  "luminance": 0.07507
}

Semantic roles & 50–950 ramp

primary
#7E218F
secondary
#61BB51
accent
#E6425B
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E218F

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

Preview Lab → · Contrast checker → · Palette generator →

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