#7E4EC6#7E4EC6

#7E4EC6 is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.8% C 0.180 H 298.6°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#7E4EC6
RGBrgb(126, 78, 198)
HSLhsl(264, 51%, 54%)
HSVhsv(264, 61%, 78%)
CMYKcmyk(36.4%, 60.6%, 0%, 22.4%)
CIE-LABlab(44.18, 45.36, -55.50)
CIE-LCHlch(44.18, 71.68, 309.25°)
OKLaboklab(53.82% 0.086 -0.1577)
OKLCHoklch(53.82% 0.18 298.6)
XYZxyz(21.5191, 13.9614, 54.9762)
Luminance0.1396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4EC6 #96C64E
analogous
#4E5AC6 #7E4EC6 #BA4EC6
triadic
#7E4EC6 #C67E4E #4EC67E
tetradic
#7E4EC6 #C64E5A #96C64E #4EC6BA
square
#7E4EC6 #C64E5A #96C64E #4EC6BA
split-complementary
#7E4EC6 #C6BA4E #5AC64E
monochromatic
#452574 #6034A2 #7E4EC6 #A07CD5 #C1ABE4

Accessibility & contrast

On white

5.54
#7E4EC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#7E4EC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4EC6
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4EC6#FFFFFF#000000##FFFFFF
##7E4EC61.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CA
Deuteranopia (green-blind)
#1F67C3
Tritanopia (blue-blind)
#6E6883
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7e4ec6;
/* rgb */ color: rgb(126, 78, 198);
/* oklch */ color: oklch(53.8% 0.180 298.6);
Tailwind
colors: {
  custom: {
    50: '#a882d8',
    500: '#7e4ec6',
    950: '#000000',
  },
}
SCSS
$custom: #7e4ec6;
$custom-light: #a882d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4ec6",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 198
  },
  "hsl": {
    "h": 264,
    "s": 51.282,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53816,
    "c": 0.17963,
    "h": 298.6
  },
  "luminance": 0.13962
}

Semantic roles & 50–950 ramp

primary
#7E4EC6
secondary
#BDD19E
accent
#DB4DA2
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7E4EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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