#7E2EA6#7E2EA6

#7E2EA6 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.4% C 0.188 H 311.8°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#7E2EA6
RGBrgb(126, 46, 166)
HSLhsl(280, 57%, 42%)
HSVhsv(280, 72%, 65%)
CMYKcmyk(24.1%, 72.3%, 0%, 34.9%)
CIE-LABlab(36.26, 53.46, -49.42)
CIE-LCHlch(36.26, 72.81, 317.25°)
OKLaboklab(47.42% 0.1251 -0.1397)
OKLCHoklch(47.42% 0.188 311.8)
XYZxyz(16.4628, 9.1432, 36.9666)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2EA6 #56A62E
analogous
#422EA6 #7E2EA6 #A62E92
triadic
#7E2EA6 #A67E2E #2EA67E
tetradic
#7E2EA6 #A6422E #56A62E #2E92A6
square
#7E2EA6 #A6422E #56A62E #2E92A6
split-complementary
#7E2EA6 #92A62E #2EA642
monochromatic
#351346 #5A2176 #7E2EA6 #9F46CC #B876D9

Accessibility & contrast

On white

7.42
#7E2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7E2EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2EA6
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2EA6#FFFFFF#000000##FFFFFF
##7E2EA61.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#1E57A3
Tritanopia (blue-blind)
#794867
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e2ea6;
/* rgb */ color: rgb(126, 46, 166);
/* oklch */ color: oklch(47.4% 0.188 311.8);
Tailwind
colors: {
  custom: {
    50: '#a76ec1',
    500: '#7e2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ea6;
$custom-light: #a76ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ea6",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 280,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47419,
    "c": 0.18751,
    "h": 311.8
  },
  "luminance": 0.09143
}

Semantic roles & 50–950 ramp

primary
#7E2EA6
secondary
#8AC16F
accent
#E0487B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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