#7E2AA5#7E2AA5

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

Color values

HEX#7E2AA5
RGBrgb(126, 42, 165)
HSLhsl(281, 59%, 41%)
HSVhsv(281, 75%, 65%)
CMYKcmyk(23.6%, 74.5%, 0%, 35.3%)
CIE-LABlab(35.61, 54.88, -49.86)
CIE-LCHlch(35.61, 74.15, 317.74°)
OKLaboklab(46.94% 0.1292 -0.141)
OKLCHoklch(46.94% 0.191 312.5)
XYZxyz(16.2224, 8.8086, 36.4357)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2AA5 #51A52A
analogous
#412AA5 #7E2AA5 #A52A8E
triadic
#7E2AA5 #A57E2A #2AA57E
tetradic
#7E2AA5 #A5412A #51A52A #2A8EA5
square
#7E2AA5 #A5412A #51A52A #2A8EA5
split-complementary
#7E2AA5 #8EA52A #2AA541
monochromatic
#331143 #591E74 #7E2AA5 #A03ECE #B86FDA

Accessibility & contrast

On white

7.60
#7E2AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7E2AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2AA5
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2AA5#FFFFFF#000000##FFFFFF
##7E2AA51.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#1B55A2
Tritanopia (blue-blind)
#794665
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e2aa5;
/* rgb */ color: rgb(126, 42, 165);
/* oklch */ color: oklch(46.9% 0.191 312.5);
Tailwind
colors: {
  custom: {
    50: '#a86cc0',
    500: '#7e2aa5',
    950: '#000000',
  },
}
SCSS
$custom: #7e2aa5;
$custom-light: #a86cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2aa5",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 280.976,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46939,
    "c": 0.19123,
    "h": 312.5
  },
  "luminance": 0.08808
}

Semantic roles & 50–950 ramp

primary
#7E2AA5
secondary
#85C169
accent
#E34577
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E2AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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