#7E1EA6#7E1EA6

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

Color values

HEX#7E1EA6
RGBrgb(126, 30, 166)
HSLhsl(282, 69%, 38%)
HSVhsv(282, 82%, 65%)
CMYKcmyk(24.1%, 81.9%, 0%, 34.9%)
CIE-LABlab(34.23, 59.29, -52.71)
CIE-LCHlch(34.23, 79.34, 318.36°)
OKLaboklab(45.99% 0.1393 -0.1492)
OKLCHoklch(45.99% 0.204 313)
XYZxyz(15.9502, 8.1178, 36.7957)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1EA6 #46A61E
analogous
#3A1EA6 #7E1EA6 #A61E8A
triadic
#7E1EA6 #A67E1E #1EA67E
tetradic
#7E1EA6 #A63A1E #46A61E #1E8AA6
square
#7E1EA6 #A63A1E #46A61E #1E8AA6
split-complementary
#7E1EA6 #8AA61E #1EA63A
monochromatic
#2F0B3E #571572 #7E1EA6 #A529D8 #BB5DE2

Accessibility & contrast

On white

8.00
#7E1EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1EA6
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1EA6#FFFFFF#000000##FFFFFF
##7E1EA61.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAA
Deuteranopia (green-blind)
#0352A3
Tritanopia (blue-blind)
#794063
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e1ea6;
/* rgb */ color: rgb(126, 30, 166);
/* oklch */ color: oklch(46.0% 0.204 313.0);
Tailwind
colors: {
  custom: {
    50: '#a867c1',
    500: '#7e1ea6',
    950: '#000000',
  },
}
SCSS
$custom: #7e1ea6;
$custom-light: #a867c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1ea6",
  "rgb": {
    "r": 126,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 282.353,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45986,
    "c": 0.20415,
    "h": 313
  },
  "luminance": 0.08117
}

Semantic roles & 50–950 ramp

primary
#7E1EA6
secondary
#7AC65A
accent
#EC3C70
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E1EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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