#7E4EAE#7E4EAE

#7E4EAE is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.2% C 0.151 H 304.8°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#7E4EAE
RGBrgb(126, 78, 174)
HSLhsl(270, 38%, 49%)
HSVhsv(270, 55%, 68%)
CMYKcmyk(27.6%, 55.2%, 0%, 31.8%)
CIE-LABlab(42.67, 39.28, -43.89)
CIE-LCHlch(42.67, 58.90, 311.83°)
OKLaboklab(52.23% 0.086 -0.1236)
OKLCHoklch(52.23% 0.151 304.8)
XYZxyz(18.9669, 12.9405, 41.5347)
Luminance0.1294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4EAE #7EAE4E
analogous
#4E4EAE #7E4EAE #AE4EAE
triadic
#7E4EAE #AE7E4E #4EAE7E
tetradic
#7E4EAE #AE4E4E #7EAE4E #4EAEAE
square
#7E4EAE #AE4E4E #7EAE4E #4EAEAE
split-complementary
#7E4EAE #AEAE4E #4EAE4E
monochromatic
#412859 #5F3B84 #7E4EAE #9D77C2 #BBA1D5

Accessibility & contrast

On white

5.85
#7E4EAE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#7E4EAE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4EAE
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4EAE#FFFFFF#000000##FFFFFF
##7E4EAE1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C63B1
Deuteranopia (green-blind)
#3C65AC
Tritanopia (blue-blind)
#766076
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7e4eae;
/* rgb */ color: rgb(126, 78, 174);
/* oklch */ color: oklch(52.2% 0.151 304.8);
Tailwind
colors: {
  custom: {
    50: '#a681c7',
    500: '#7e4eae',
    950: '#000000',
  },
}
SCSS
$custom: #7e4eae;
$custom-light: #a681c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4eae",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 174
  },
  "hsl": {
    "h": 270,
    "s": 38.095,
    "l": 49.412
  },
  "oklch": {
    "l": 0.52232,
    "c": 0.15058,
    "h": 304.8
  },
  "luminance": 0.1294
}

Semantic roles & 50–950 ramp

primary
#7E4EAE
secondary
#ACC296
accent
#CE5A94
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7E4EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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