#7E1AA0#7E1AA0

#7E1AA0 is a mid, highly saturated purple. Relative luminance 0.077; OKLCH L 45.3% C 0.202 H 315.2°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#7E1AA0
RGBrgb(126, 26, 160)
HSLhsl(285, 72%, 36%)
HSVhsv(285, 84%, 63%)
CMYKcmyk(21.2%, 83.8%, 0%, 37.3%)
CIE-LABlab(33.38, 59.26, -50.46)
CIE-LCHlch(33.38, 77.83, 319.58°)
OKLaboklab(45.25% 0.1435 -0.1426)
OKLCHoklch(45.25% 0.202 315.2)
XYZxyz(15.3177, 7.7131, 33.9328)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1AA0 #3CA01A
analogous
#3B1AA0 #7E1AA0 #A01A7F
triadic
#7E1AA0 #A07E1A #1AA07E
tetradic
#7E1AA0 #A03B1A #3CA01A #1A7FA0
square
#7E1AA0 #A03B1A #3CA01A #1A7FA0
split-complementary
#7E1AA0 #7FA01A #1AA03B
monochromatic
#2B0937 #55116B #7E1AA0 #A723D5 #BE52E3

Accessibility & contrast

On white

8.26
#7E1AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7E1AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1AA0
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1AA0#FFFFFF#000000##FFFFFF
##7E1AA01.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A3
Deuteranopia (green-blind)
#10519D
Tritanopia (blue-blind)
#7B3C5F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e1aa0;
/* rgb */ color: rgb(126, 26, 160);
/* oklch */ color: oklch(45.3% 0.202 315.2);
Tailwind
colors: {
  custom: {
    50: '#a865bd',
    500: '#7e1aa0',
    950: '#000000',
  },
}
SCSS
$custom: #7e1aa0;
$custom-light: #a865bd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1aa0",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 160
  },
  "hsl": {
    "h": 284.776,
    "s": 72.043,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45251,
    "c": 0.2023,
    "h": 315.2
  },
  "luminance": 0.07712
}

Semantic roles & 50–950 ramp

primary
#7E1AA0
secondary
#6EC550
accent
#EF3967
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7E1AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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