#7E218A#7E218A

#7E218A is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.2% C 0.177 H 322.9°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#7E218A
RGBrgb(126, 33, 138)
HSLhsl(293, 61%, 34%)
HSVhsv(293, 76%, 54%)
CMYKcmyk(8.7%, 76.1%, 0%, 45.9%)
CIE-LABlab(32.61, 52.85, -38.23)
CIE-LCHlch(32.61, 65.23, 324.12°)
OKLaboklab(44.23% 0.141 -0.1068)
OKLCHoklch(44.23% 0.177 322.9)
XYZxyz(13.7350, 7.3591, 24.7368)
Luminance0.0736 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E218A #2D8A21
analogous
#49218A #7E218A #8A2161
triadic
#7E218A #8A7E21 #218A7E
tetradic
#7E218A #8A4921 #2D8A21 #21618A
square
#7E218A #8A4921 #2D8A21 #21618A
split-complementary
#7E218A #618A21 #218A49
monochromatic
#240927 #511559 #7E218A #AB2DBB #C650D5

Accessibility & contrast

On white

8.50
#7E218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7E218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E218A
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E218A#FFFFFF#000000##FFFFFF
##7E218A1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#325088
Tritanopia (blue-blind)
#803554
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e218a;
/* rgb */ color: rgb(126, 33, 138);
/* oklch */ color: oklch(44.2% 0.177 322.9);
Tailwind
colors: {
  custom: {
    50: '#a767ad',
    500: '#7e218a',
    950: '#000000',
  },
}
SCSS
$custom: #7e218a;
$custom-light: #a767ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7e218a",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 293.143,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44226,
    "c": 0.17685,
    "h": 322.9
  },
  "luminance": 0.07358
}

Semantic roles & 50–950 ramp

primary
#7E218A
secondary
#5AB94E
accent
#E54356
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E218A

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

Preview Lab → · Contrast checker → · Palette generator →

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