#7E2AA4#7E2AA4

#7E2AA4 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.9% C 0.190 H 312.8°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#7E2AA4
RGBrgb(126, 42, 164)
HSLhsl(281, 59%, 40%)
HSVhsv(281, 74%, 64%)
CMYKcmyk(23.2%, 74.4%, 0%, 35.7%)
CIE-LABlab(35.54, 54.67, -49.38)
CIE-LCHlch(35.54, 73.67, 317.91°)
OKLaboklab(46.87% 0.1294 -0.1395)
OKLCHoklch(46.87% 0.19 312.8)
XYZxyz(16.1318, 8.7724, 35.9582)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2AA4 #50A42A
analogous
#412AA4 #7E2AA4 #A42A8D
triadic
#7E2AA4 #A47E2A #2AA47E
tetradic
#7E2AA4 #A4412A #50A42A #2A8DA4
square
#7E2AA4 #A4412A #50A42A #2A8DA4
split-complementary
#7E2AA4 #8DA42A #2AA441
monochromatic
#331143 #591E73 #7E2AA4 #A13ECD #B86EDA

Accessibility & contrast

On white

7.62
#7E2AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7E2AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2AA4
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2AA4#FFFFFF#000000##FFFFFF
##7E2AA41.007.622.757.62
#FFFFFF7.621.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA7
Deuteranopia (green-blind)
#1C55A1
Tritanopia (blue-blind)
#7A4565
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e2aa4;
/* rgb */ color: rgb(126, 42, 164);
/* oklch */ color: oklch(46.9% 0.190 312.8);
Tailwind
colors: {
  custom: {
    50: '#a86cc0',
    500: '#7e2aa4',
    950: '#000000',
  },
}
SCSS
$custom: #7e2aa4;
$custom-light: #a86cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2aa4",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 281.311,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46866,
    "c": 0.19028,
    "h": 312.8
  },
  "luminance": 0.08772
}

Semantic roles & 50–950 ramp

primary
#7E2AA4
secondary
#84C169
accent
#E24576
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E2AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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