#7E2EA0#7E2EA0

#7E2EA0 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.0% C 0.182 H 313.8°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#7E2EA0
RGBrgb(126, 46, 160)
HSLhsl(282, 55%, 40%)
HSVhsv(282, 71%, 63%)
CMYKcmyk(21.2%, 71.2%, 0%, 37.3%)
CIE-LABlab(35.85, 52.17, -46.48)
CIE-LCHlch(35.85, 69.87, 318.31°)
OKLaboklab(46.99% 0.1258 -0.131)
OKLCHoklch(46.99% 0.182 313.8)
XYZxyz(15.9253, 8.9282, 34.1353)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2EA0 #50A02E
analogous
#452EA0 #7E2EA0 #A02E89
triadic
#7E2EA0 #A07E2E #2EA07E
tetradic
#7E2EA0 #A0452E #50A02E #2E89A0
square
#7E2EA0 #A0452E #50A02E #2E89A0
split-complementary
#7E2EA0 #89A02E #2EA045
monochromatic
#331341 #592070 #7E2EA0 #A142C9 #B872D6

Accessibility & contrast

On white

7.54
#7E2EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2EA0
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2EA0#FFFFFF#000000##FFFFFF
##7E2EA01.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A3
Deuteranopia (green-blind)
#27569D
Tritanopia (blue-blind)
#7B4664
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e2ea0;
/* rgb */ color: rgb(126, 46, 160);
/* oklch */ color: oklch(47.0% 0.182 313.8);
Tailwind
colors: {
  custom: {
    50: '#a76ebd',
    500: '#7e2ea0',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ea0;
$custom-light: #a76ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ea0",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 160
  },
  "hsl": {
    "h": 282.105,
    "s": 55.34,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46994,
    "c": 0.18164,
    "h": 313.8
  },
  "luminance": 0.08928
}

Semantic roles & 50–950 ramp

primary
#7E2EA0
secondary
#84BE6C
accent
#DF4976
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E2EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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