#7E1AA4#7E1AA4

#7E1AA4 is a mid, highly saturated purple. Relative luminance 0.079; OKLCH L 45.6% C 0.206 H 313.9°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#7E1AA4
RGBrgb(126, 26, 164)
HSLhsl(283, 73%, 37%)
HSVhsv(283, 84%, 64%)
CMYKcmyk(23.2%, 84.1%, 0%, 35.7%)
CIE-LABlab(33.68, 60.05, -52.39)
CIE-LCHlch(33.68, 79.69, 318.90°)
OKLaboklab(45.56% 0.1426 -0.1483)
OKLCHoklch(45.56% 0.206 313.9)
XYZxyz(15.6733, 7.8553, 35.8054)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1AA4 #40A41A
analogous
#391AA4 #7E1AA4 #A41A85
triadic
#7E1AA4 #A47E1A #1AA47E
tetradic
#7E1AA4 #A4391A #40A41A #1A85A4
square
#7E1AA4 #A4391A #40A41A #1A85A4
split-complementary
#7E1AA4 #85A41A #1AA439
monochromatic
#2D093A #55126F #7E1AA4 #A722D9 #BC54E4

Accessibility & contrast

On white

8.17
#7E1AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7E1AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1AA4
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1AA4#FFFFFF#000000##FFFFFF
##7E1AA41.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA8
Deuteranopia (green-blind)
#0351A1
Tritanopia (blue-blind)
#7A3E62
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e1aa4;
/* rgb */ color: rgb(126, 26, 164);
/* oklch */ color: oklch(45.6% 0.206 313.9);
Tailwind
colors: {
  custom: {
    50: '#a866c0',
    500: '#7e1aa4',
    950: '#000000',
  },
}
SCSS
$custom: #7e1aa4;
$custom-light: #a866c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1aa4",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 164
  },
  "hsl": {
    "h": 283.478,
    "s": 72.632,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45556,
    "c": 0.20571,
    "h": 313.9
  },
  "luminance": 0.07855
}

Semantic roles & 50–950 ramp

primary
#7E1AA4
secondary
#73C753
accent
#EF386B
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7E1AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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