#7E4EBE#7E4EBE

#7E4EBE is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.3% C 0.170 H 300.5°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#7E4EBE
RGBrgb(126, 78, 190)
HSLhsl(266, 46%, 53%)
HSVhsv(266, 59%, 75%)
CMYKcmyk(33.7%, 58.9%, 0%, 25.5%)
CIE-LABlab(43.66, 43.30, -51.69)
CIE-LCHlch(43.66, 67.43, 309.95°)
OKLaboklab(53.27% 0.0862 -0.1465)
OKLCHoklch(53.27% 0.17 300.5)
XYZxyz(20.6206, 13.6020, 50.2443)
Luminance0.1360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4EBE #8EBE4E
analogous
#4E56BE #7E4EBE #B64EBE
triadic
#7E4EBE #BE7E4E #4EBE7E
tetradic
#7E4EBE #BE4E56 #8EBE4E #4EBEB6
square
#7E4EBE #BE4E56 #8EBE4E #4EBEB6
split-complementary
#7E4EBE #BEB64E #56BE4E
monochromatic
#44276A #613897 #7E4EBE #9F7BCE #BFA8DF

Accessibility & contrast

On white

5.64
#7E4EBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#7E4EBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4EBE
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4EBE#FFFFFF#000000##FFFFFF
##7E4EBE1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1367C2
Deuteranopia (green-blind)
#2C66BB
Tritanopia (blue-blind)
#71657E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7e4ebe;
/* rgb */ color: rgb(126, 78, 190);
/* oklch */ color: oklch(53.3% 0.170 300.5);
Tailwind
colors: {
  custom: {
    50: '#a782d2',
    500: '#7e4ebe',
    950: '#000000',
  },
}
SCSS
$custom: #7e4ebe;
$custom-light: #a782d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4ebe",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 190
  },
  "hsl": {
    "h": 265.714,
    "s": 46.281,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53269,
    "c": 0.17,
    "h": 300.5
  },
  "luminance": 0.13602
}

Semantic roles & 50–950 ramp

primary
#7E4EBE
secondary
#B7CC9C
accent
#D6529D
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7E4EBE

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

Preview Lab → · Contrast checker → · Palette generator →

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