#7E218D#7E218D

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

Color values

HEX#7E218D
RGBrgb(126, 33, 141)
HSLhsl(292, 62%, 34%)
HSVhsv(292, 77%, 55%)
CMYKcmyk(10.6%, 76.6%, 0%, 44.7%)
CIE-LABlab(32.80, 53.41, -39.77)
CIE-LCHlch(32.80, 66.59, 323.33°)
OKLaboklab(44.43% 0.1407 -0.1113)
OKLCHoklch(44.43% 0.179 321.7)
XYZxyz(13.9552, 7.4472, 25.8965)
Luminance0.0745 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E218D #308D21
analogous
#48218D #7E218D #8D2166
triadic
#7E218D #8D7E21 #218D7E
tetradic
#7E218D #8D4821 #308D21 #21668D
square
#7E218D #8D4821 #308D21 #21668D
split-complementary
#7E218D #668D21 #218D48
monochromatic
#250A2A #52155B #7E218D #AA2DBF #C452D6

Accessibility & contrast

On white

8.44
#7E218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7E218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E218D
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E218D#FFFFFF#000000##FFFFFF
##7E218D1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#30518B
Tritanopia (blue-blind)
#7F3656
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e218d;
/* rgb */ color: rgb(126, 33, 141);
/* oklch */ color: oklch(44.4% 0.179 321.7);
Tailwind
colors: {
  custom: {
    50: '#a767af',
    500: '#7e218d',
    950: '#000000',
  },
}
SCSS
$custom: #7e218d;
$custom-light: #a767af;
$custom-dark: #000000;
JSON
{
  "hex": "#7e218d",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 291.667,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44425,
    "c": 0.17944,
    "h": 321.7
  },
  "luminance": 0.07446
}

Semantic roles & 50–950 ramp

primary
#7E218D
secondary
#5FBA50
accent
#E54359
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E218D

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

Preview Lab → · Contrast checker → · Palette generator →

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