#7E2AA6#7E2AA6

#7E2AA6 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 47.0% C 0.192 H 312.2°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#7E2AA6
RGBrgb(126, 42, 166)
HSLhsl(281, 60%, 41%)
HSVhsv(281, 75%, 65%)
CMYKcmyk(24.1%, 74.7%, 0%, 34.9%)
CIE-LABlab(35.68, 55.09, -50.35)
CIE-LCHlch(35.68, 74.63, 317.58°)
OKLaboklab(47.01% 0.1291 -0.1424)
OKLCHoklch(47.01% 0.192 312.2)
XYZxyz(16.3138, 8.8452, 36.9169)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2AA6 #52A62A
analogous
#402AA6 #7E2AA6 #A62A90
triadic
#7E2AA6 #A67E2A #2AA67E
tetradic
#7E2AA6 #A6402A #52A62A #2A90A6
square
#7E2AA6 #A6402A #52A62A #2A90A6
split-complementary
#7E2AA6 #90A62A #2AA640
monochromatic
#341144 #591E75 #7E2AA6 #A03FCE #B870DB

Accessibility & contrast

On white

7.58
#7E2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7E2AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2AA6
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2AA6#FFFFFF#000000##FFFFFF
##7E2AA61.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#1956A3
Tritanopia (blue-blind)
#794666
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e2aa6;
/* rgb */ color: rgb(126, 42, 166);
/* oklch */ color: oklch(47.0% 0.192 312.2);
Tailwind
colors: {
  custom: {
    50: '#a86cc1',
    500: '#7e2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #7e2aa6;
$custom-light: #a86cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2aa6",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 280.645,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47012,
    "c": 0.19217,
    "h": 312.2
  },
  "luminance": 0.08845
}

Semantic roles & 50–950 ramp

primary
#7E2AA6
secondary
#86C26A
accent
#E34578
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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