#7E1EA7#7E1EA7

#7E1EA7 is a mid, highly saturated purple. Relative luminance 0.082; OKLCH L 46.1% C 0.205 H 312.7°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#7E1EA7
RGBrgb(126, 30, 167)
HSLhsl(282, 70%, 39%)
HSVhsv(282, 82%, 65%)
CMYKcmyk(24.6%, 82%, 0%, 34.5%)
CIE-LABlab(34.30, 59.50, -53.19)
CIE-LCHlch(34.30, 79.80, 318.20°)
OKLaboklab(46.06% 0.1391 -0.1506)
OKLCHoklch(46.06% 0.205 312.7)
XYZxyz(16.0422, 8.1547, 37.2807)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1EA7 #47A71E
analogous
#391EA7 #7E1EA7 #A71E8B
triadic
#7E1EA7 #A77E1E #1EA77E
tetradic
#7E1EA7 #A7391E #47A71E #1E8BA7
square
#7E1EA7 #A7391E #47A71E #1E8BA7
split-complementary
#7E1EA7 #8BA71E #1EA739
monochromatic
#300B3F #571573 #7E1EA7 #A42AD9 #BA5DE2

Accessibility & contrast

On white

7.98
#7E1EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7E1EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1EA7
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1EA7#FFFFFF#000000##FFFFFF
##7E1EA71.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAB
Deuteranopia (green-blind)
#0053A4
Tritanopia (blue-blind)
#794164
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e1ea7;
/* rgb */ color: rgb(126, 30, 167);
/* oklch */ color: oklch(46.1% 0.205 312.7);
Tailwind
colors: {
  custom: {
    50: '#a867c2',
    500: '#7e1ea7',
    950: '#000000',
  },
}
SCSS
$custom: #7e1ea7;
$custom-light: #a867c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1ea7",
  "rgb": {
    "r": 126,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 282.044,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46063,
    "c": 0.20503,
    "h": 312.7
  },
  "luminance": 0.08154
}

Semantic roles & 50–950 ramp

primary
#7E1EA7
secondary
#7BC65B
accent
#EC3B70
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E1EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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