#7E218B#7E218B

#7E218B is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.3% C 0.178 H 322.5°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#7E218B
RGBrgb(126, 33, 139)
HSLhsl(293, 62%, 34%)
HSVhsv(293, 76%, 55%)
CMYKcmyk(9.4%, 76.3%, 0%, 45.5%)
CIE-LABlab(32.67, 53.04, -38.74)
CIE-LCHlch(32.67, 65.68, 323.85°)
OKLaboklab(44.29% 0.1409 -0.1083)
OKLCHoklch(44.29% 0.178 322.5)
XYZxyz(13.8078, 7.3882, 25.1199)
Luminance0.0739 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E218B #2E8B21
analogous
#49218B #7E218B #8B2163
triadic
#7E218B #8B7E21 #218B7E
tetradic
#7E218B #8B4921 #2E8B21 #21638B
square
#7E218B #8B4921 #2E8B21 #21638B
split-complementary
#7E218B #638B21 #218B49
monochromatic
#240A28 #51155A #7E218B #AB2DBC #C551D6

Accessibility & contrast

On white

8.48
#7E218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E218B
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E218B#FFFFFF#000000##FFFFFF
##7E218B1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#315089
Tritanopia (blue-blind)
#803555
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e218b;
/* rgb */ color: rgb(126, 33, 139);
/* oklch */ color: oklch(44.3% 0.178 322.5);
Tailwind
colors: {
  custom: {
    50: '#a767ad',
    500: '#7e218b',
    950: '#000000',
  },
}
SCSS
$custom: #7e218b;
$custom-light: #a767ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7e218b",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 292.642,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44292,
    "c": 0.17771,
    "h": 322.5
  },
  "luminance": 0.07387
}

Semantic roles & 50–950 ramp

primary
#7E218B
secondary
#5CB94F
accent
#E54357
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E218B

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

Preview Lab → · Contrast checker → · Palette generator →

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