#7E1AA7#7E1AA7

#7E1AA7 is a mid, highly saturated purple. Relative luminance 0.080; OKLCH L 45.8% C 0.208 H 312.9°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#7E1AA7
RGBrgb(126, 26, 167)
HSLhsl(283, 73%, 38%)
HSVhsv(283, 84%, 65%)
CMYKcmyk(24.6%, 84.4%, 0%, 34.5%)
CIE-LABlab(33.91, 60.65, -53.83)
CIE-LCHlch(33.91, 81.09, 318.41°)
OKLaboklab(45.79% 0.1419 -0.1525)
OKLCHoklch(45.79% 0.208 312.9)
XYZxyz(15.9474, 7.9649, 37.2490)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1AA7 #43A71A
analogous
#371AA7 #7E1AA7 #A71A89
triadic
#7E1AA7 #A77E1A #1AA77E
tetradic
#7E1AA7 #A7371A #43A71A #1A89A7
square
#7E1AA7 #A7371A #43A71A #1A89A7
split-complementary
#7E1AA7 #89A71A #1AA737
monochromatic
#2E0A3D #561272 #7E1AA7 #A622DC #BB57E5

Accessibility & contrast

On white

8.10
#7E1AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7E1AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1AA7
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1AA7#FFFFFF#000000##FFFFFF
##7E1AA71.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#0052A4
Tritanopia (blue-blind)
#793F63
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e1aa7;
/* rgb */ color: rgb(126, 26, 167);
/* oklch */ color: oklch(45.8% 0.208 312.9);
Tailwind
colors: {
  custom: {
    50: '#a866c2',
    500: '#7e1aa7',
    950: '#000000',
  },
}
SCSS
$custom: #7e1aa7;
$custom-light: #a866c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1aa7",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 167
  },
  "hsl": {
    "h": 282.553,
    "s": 73.057,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45789,
    "c": 0.20827,
    "h": 312.9
  },
  "luminance": 0.07964
}

Semantic roles & 50–950 ramp

primary
#7E1AA7
secondary
#76C855
accent
#F0386D
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E1AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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