#7E2EA1#7E2EA1

#7E2EA1 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.1% C 0.183 H 313.5°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#7E2EA1
RGBrgb(126, 46, 161)
HSLhsl(282, 56%, 41%)
HSVhsv(282, 71%, 63%)
CMYKcmyk(21.7%, 71.4%, 0%, 36.9%)
CIE-LABlab(35.91, 52.39, -46.97)
CIE-LCHlch(35.91, 70.36, 318.12°)
OKLaboklab(47.06% 0.1257 -0.1325)
OKLCHoklch(47.06% 0.183 313.5)
XYZxyz(16.0131, 8.9633, 34.5979)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2EA1 #51A12E
analogous
#442EA1 #7E2EA1 #A12E8A
triadic
#7E2EA1 #A17E2E #2EA17E
tetradic
#7E2EA1 #A1442E #51A12E #2E8AA1
square
#7E2EA1 #A1442E #51A12E #2E8AA1
split-complementary
#7E2EA1 #8AA12E #2EA144
monochromatic
#331342 #592071 #7E2EA1 #A043C9 #B873D7

Accessibility & contrast

On white

7.52
#7E2EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7E2EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2EA1
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2EA1#FFFFFF#000000##FFFFFF
##7E2EA11.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A4
Deuteranopia (green-blind)
#25569E
Tritanopia (blue-blind)
#7A4664
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e2ea1;
/* rgb */ color: rgb(126, 46, 161);
/* oklch */ color: oklch(47.1% 0.183 313.5);
Tailwind
colors: {
  custom: {
    50: '#a76ebd',
    500: '#7e2ea1',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ea1;
$custom-light: #a76ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ea1",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 281.739,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47064,
    "c": 0.18262,
    "h": 313.5
  },
  "luminance": 0.08963
}

Semantic roles & 50–950 ramp

primary
#7E2EA1
secondary
#85BE6C
accent
#DF4977
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E2EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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