#7E1AAA#7E1AAA

#7E1AAA is a mid, highly saturated purple. Relative luminance 0.081; OKLCH L 46.0% C 0.211 H 312.0°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#7E1AAA
RGBrgb(126, 26, 170)
HSLhsl(282, 73%, 38%)
HSVhsv(282, 85%, 67%)
CMYKcmyk(25.9%, 84.7%, 0%, 33.3%)
CIE-LABlab(34.14, 61.25, -55.25)
CIE-LCHlch(34.14, 82.48, 317.95°)
OKLaboklab(46.02% 0.1411 -0.1567)
OKLCHoklch(46.02% 0.211 312)
XYZxyz(16.2279, 8.0772, 38.7266)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1AAA #46AA1A
analogous
#361AAA #7E1AAA #AA1A8E
triadic
#7E1AAA #AA7E1A #1AAA7E
tetradic
#7E1AAA #AA361A #46AA1A #1A8EAA
square
#7E1AAA #AA361A #46AA1A #1A8EAA
split-complementary
#7E1AAA #8EAA1A #1AAA36
monochromatic
#2F0A40 #571275 #7E1AAA #A524DD #BB59E6

Accessibility & contrast

On white

8.03
#7E1AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7E1AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1AAA
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1AAA#FFFFFF#000000##FFFFFF
##7E1AAA1.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAE
Deuteranopia (green-blind)
#0052A7
Tritanopia (blue-blind)
#784165
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e1aaa;
/* rgb */ color: rgb(126, 26, 170);
/* oklch */ color: oklch(46.0% 0.211 312.0);
Tailwind
colors: {
  custom: {
    50: '#a966c4',
    500: '#7e1aaa',
    950: '#000000',
  },
}
SCSS
$custom: #7e1aaa;
$custom-light: #a966c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1aaa",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 170
  },
  "hsl": {
    "h": 281.667,
    "s": 73.469,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46024,
    "c": 0.21085,
    "h": 312
  },
  "luminance": 0.08077
}

Semantic roles & 50–950 ramp

primary
#7E1AAA
secondary
#7AC957
accent
#F03870
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E1AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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