#7E1EA1#7E1EA1

#7E1EA1 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.6% C 0.200 H 314.6°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#7E1EA1
RGBrgb(126, 30, 161)
HSLhsl(284, 69%, 37%)
HSVhsv(284, 81%, 63%)
CMYKcmyk(21.7%, 81.4%, 0%, 36.9%)
CIE-LABlab(33.85, 58.29, -50.30)
CIE-LCHlch(33.85, 76.99, 319.21°)
OKLaboklab(45.61% 0.1404 -0.1421)
OKLCHoklch(45.61% 0.2 314.6)
XYZxyz(15.5004, 7.9379, 34.4270)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1EA1 #41A11E
analogous
#3C1EA1 #7E1EA1 #A11E83
triadic
#7E1EA1 #A17E1E #1EA17E
tetradic
#7E1EA1 #A13C1E #41A11E #1E83A1
square
#7E1EA1 #A13C1E #41A11E #1E83A1
split-complementary
#7E1EA1 #83A11E #1EA13C
monochromatic
#2D0B3A #56146D #7E1EA1 #A628D5 #BC59E0

Accessibility & contrast

On white

8.12
#7E1EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1EA1
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1EA1#FFFFFF#000000##FFFFFF
##7E1EA11.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#13529E
Tritanopia (blue-blind)
#7B3E61
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e1ea1;
/* rgb */ color: rgb(126, 30, 161);
/* oklch */ color: oklch(45.6% 0.200 314.6);
Tailwind
colors: {
  custom: {
    50: '#a867be',
    500: '#7e1ea1',
    950: '#000000',
  },
}
SCSS
$custom: #7e1ea1;
$custom-light: #a867be;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1ea1",
  "rgb": {
    "r": 126,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 283.969,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45607,
    "c": 0.19978,
    "h": 314.6
  },
  "luminance": 0.07937
}

Semantic roles & 50–950 ramp

primary
#7E1EA1
secondary
#74C457
accent
#EB3C6B
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E1EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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