#7E2EA2#7E2EA2

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

Color values

HEX#7E2EA2
RGBrgb(126, 46, 162)
HSLhsl(281, 56%, 41%)
HSVhsv(281, 72%, 64%)
CMYKcmyk(22.2%, 71.6%, 0%, 36.5%)
CIE-LABlab(35.98, 52.60, -47.46)
CIE-LCHlch(35.98, 70.85, 317.94°)
OKLaboklab(47.13% 0.1256 -0.1339)
OKLCHoklch(47.13% 0.184 313.2)
XYZxyz(16.1016, 8.9987, 35.0642)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2EA2 #52A22E
analogous
#442EA2 #7E2EA2 #A22E8C
triadic
#7E2EA2 #A27E2E #2EA27E
tetradic
#7E2EA2 #A2442E #52A22E #2E8CA2
square
#7E2EA2 #A2442E #52A22E #2E8CA2
split-complementary
#7E2EA2 #8CA22E #2EA244
monochromatic
#341343 #592072 #7E2EA2 #A043CA #B873D7

Accessibility & contrast

On white

7.50
#7E2EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7E2EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2EA2
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2EA2#FFFFFF#000000##FFFFFF
##7E2EA21.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#24569F
Tritanopia (blue-blind)
#7A4765
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e2ea2;
/* rgb */ color: rgb(126, 46, 162);
/* oklch */ color: oklch(47.1% 0.184 313.2);
Tailwind
colors: {
  custom: {
    50: '#a76ebe',
    500: '#7e2ea2',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ea2;
$custom-light: #a76ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ea2",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 281.379,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47134,
    "c": 0.1836,
    "h": 313.2
  },
  "luminance": 0.08998
}

Semantic roles & 50–950 ramp

primary
#7E2EA2
secondary
#86BF6D
accent
#DF4977
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E2EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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