#7E1EA9#7E1EA9

#7E1EA9 is a mid, highly saturated purple. Relative luminance 0.082; OKLCH L 46.2% C 0.207 H 312.1°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#7E1EA9
RGBrgb(126, 30, 169)
HSLhsl(281, 70%, 39%)
HSVhsv(281, 82%, 66%)
CMYKcmyk(25.4%, 82.2%, 0%, 33.7%)
CIE-LABlab(34.46, 59.90, -54.14)
CIE-LCHlch(34.46, 80.75, 317.89°)
OKLaboklab(46.22% 0.1386 -0.1534)
OKLCHoklch(46.22% 0.207 312.1)
XYZxyz(16.2286, 8.2292, 38.2619)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1EA9 #49A91E
analogous
#391EA9 #7E1EA9 #A91E8F
triadic
#7E1EA9 #A97E1E #1EA97E
tetradic
#7E1EA9 #A9391E #49A91E #1E8FA9
square
#7E1EA9 #A9391E #49A91E #1E8FA9
split-complementary
#7E1EA9 #8FA91E #1EA939
monochromatic
#310C41 #571575 #7E1EA9 #A32BD9 #BA5FE3

Accessibility & contrast

On white

7.94
#7E1EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7E1EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1EA9
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1EA9#FFFFFF#000000##FFFFFF
##7E1EA91.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAD
Deuteranopia (green-blind)
#0053A6
Tritanopia (blue-blind)
#794265
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e1ea9;
/* rgb */ color: rgb(126, 30, 169);
/* oklch */ color: oklch(46.2% 0.207 312.1);
Tailwind
colors: {
  custom: {
    50: '#a867c3',
    500: '#7e1ea9',
    950: '#000000',
  },
}
SCSS
$custom: #7e1ea9;
$custom-light: #a867c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1ea9",
  "rgb": {
    "r": 126,
    "g": 30,
    "b": 169
  },
  "hsl": {
    "h": 281.439,
    "s": 69.849,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46218,
    "c": 0.20678,
    "h": 312.1
  },
  "luminance": 0.08229
}

Semantic roles & 50–950 ramp

primary
#7E1EA9
secondary
#7DC75C
accent
#ED3B72
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E1EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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