#7E1EA0#7E1EA0

#7E1EA0 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.5% C 0.199 H 315.0°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#7E1EA0
RGBrgb(126, 30, 160)
HSLhsl(284, 68%, 37%)
HSVhsv(284, 81%, 63%)
CMYKcmyk(21.2%, 81.3%, 0%, 37.3%)
CIE-LABlab(33.78, 58.09, -49.81)
CIE-LCHlch(33.78, 76.52, 319.39°)
OKLaboklab(45.53% 0.1406 -0.1407)
OKLCHoklch(45.53% 0.199 315)
XYZxyz(15.4126, 7.9028, 33.9644)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1EA0 #40A01E
analogous
#3D1EA0 #7E1EA0 #A01E81
triadic
#7E1EA0 #A07E1E #1EA07E
tetradic
#7E1EA0 #A03D1E #40A01E #1E81A0
square
#7E1EA0 #A03D1E #40A01E #1E81A0
split-complementary
#7E1EA0 #81A01E #1EA03D
monochromatic
#2D0B39 #55146C #7E1EA0 #A728D4 #BC59E0

Accessibility & contrast

On white

8.14
#7E1EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7E1EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1EA0
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1EA0#FFFFFF#000000##FFFFFF
##7E1EA01.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA3
Deuteranopia (green-blind)
#15529D
Tritanopia (blue-blind)
#7B3E60
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e1ea0;
/* rgb */ color: rgb(126, 30, 160);
/* oklch */ color: oklch(45.5% 0.199 315.0);
Tailwind
colors: {
  custom: {
    50: '#a867bd',
    500: '#7e1ea0',
    950: '#000000',
  },
}
SCSS
$custom: #7e1ea0;
$custom-light: #a867bd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1ea0",
  "rgb": {
    "r": 126,
    "g": 30,
    "b": 160
  },
  "hsl": {
    "h": 284.308,
    "s": 68.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45532,
    "c": 0.1989,
    "h": 315
  },
  "luminance": 0.07902
}

Semantic roles & 50–950 ramp

primary
#7E1EA0
secondary
#73C456
accent
#EB3D6A
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E1EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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