#7E218C#7E218C

#7E218C is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.4% C 0.179 H 322.1°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#7E218C
RGBrgb(126, 33, 140)
HSLhsl(292, 62%, 34%)
HSVhsv(292, 76%, 55%)
CMYKcmyk(10%, 76.4%, 0%, 45.1%)
CIE-LABlab(32.74, 53.23, -39.26)
CIE-LCHlch(32.74, 66.14, 323.59°)
OKLaboklab(44.36% 0.1408 -0.1098)
OKLCHoklch(44.36% 0.179 322.1)
XYZxyz(13.8812, 7.4176, 25.5064)
Luminance0.0742 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E218C #2F8C21
analogous
#49218C #7E218C #8C2165
triadic
#7E218C #8C7E21 #218C7E
tetradic
#7E218C #8C4921 #2F8C21 #21658C
square
#7E218C #8C4921 #2F8C21 #21658C
split-complementary
#7E218C #658C21 #218C49
monochromatic
#250A29 #51155A #7E218C #AB2DBE #C551D6

Accessibility & contrast

On white

8.46
#7E218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7E218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E218C
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E218C#FFFFFF#000000##FFFFFF
##7E218C1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#30508A
Tritanopia (blue-blind)
#7F3655
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e218c;
/* rgb */ color: rgb(126, 33, 140);
/* oklch */ color: oklch(44.4% 0.179 322.1);
Tailwind
colors: {
  custom: {
    50: '#a767ae',
    500: '#7e218c',
    950: '#000000',
  },
}
SCSS
$custom: #7e218c;
$custom-light: #a767ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7e218c",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 292.15,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44359,
    "c": 0.17858,
    "h": 322.1
  },
  "luminance": 0.07417
}

Semantic roles & 50–950 ramp

primary
#7E218C
secondary
#5DB94F
accent
#E54358
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E218C

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

Preview Lab → · Contrast checker → · Palette generator →

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