#7E1AA1#7E1AA1

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

Color values

HEX#7E1AA1
RGBrgb(126, 26, 161)
HSLhsl(284, 72%, 37%)
HSVhsv(284, 84%, 63%)
CMYKcmyk(21.7%, 83.9%, 0%, 36.9%)
CIE-LABlab(33.45, 59.46, -50.95)
CIE-LCHlch(33.45, 78.30, 319.41°)
OKLaboklab(45.33% 0.1433 -0.144)
OKLCHoklch(45.33% 0.203 314.8)
XYZxyz(15.4055, 7.7482, 34.3954)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1AA1 #3DA11A
analogous
#3A1AA1 #7E1AA1 #A11A81
triadic
#7E1AA1 #A17E1A #1AA17E
tetradic
#7E1AA1 #A13A1A #3DA11A #1A81A1
square
#7E1AA1 #A13A1A #3DA11A #1A81A1
split-complementary
#7E1AA1 #81A11A #1AA13A
monochromatic
#2C0938 #55116C #7E1AA1 #A723D6 #BE52E3

Accessibility & contrast

On white

8.24
#7E1AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7E1AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1AA1
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1AA1#FFFFFF#000000##FFFFFF
##7E1AA11.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A4
Deuteranopia (green-blind)
#0E519E
Tritanopia (blue-blind)
#7B3C60
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e1aa1;
/* rgb */ color: rgb(126, 26, 161);
/* oklch */ color: oklch(45.3% 0.203 314.8);
Tailwind
colors: {
  custom: {
    50: '#a865be',
    500: '#7e1aa1',
    950: '#000000',
  },
}
SCSS
$custom: #7e1aa1;
$custom-light: #a865be;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1aa1",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 161
  },
  "hsl": {
    "h": 284.444,
    "s": 72.193,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45327,
    "c": 0.20315,
    "h": 314.8
  },
  "luminance": 0.07748
}

Semantic roles & 50–950 ramp

primary
#7E1AA1
secondary
#6FC651
accent
#EF3968
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7E1AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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