#7E4ED8#7E4ED8

#7E4ED8 is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.1% C 0.201 H 294.9°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#7E4ED8
RGBrgb(126, 78, 216)
HSLhsl(261, 64%, 58%)
HSVhsv(261, 64%, 85%)
CMYKcmyk(41.7%, 63.9%, 0%, 15.3%)
CIE-LABlab(45.42, 50.07, -63.85)
CIE-LCHlch(45.42, 81.14, 308.10°)
OKLaboklab(55.11% 0.0848 -0.1822)
OKLCHoklch(55.11% 0.201 294.9)
XYZxyz(23.7199, 14.8417, 66.5674)
Luminance0.1484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4ED8 #A8D84E
analogous
#4E63D8 #7E4ED8 #C34ED8
triadic
#7E4ED8 #D87E4E #4ED87E
tetradic
#7E4ED8 #D84E63 #A8D84E #4ED8C3
square
#7E4ED8 #D84E63 #A8D84E #4ED8C3
split-complementary
#7E4ED8 #D8C34E #63D84E
monochromatic
#451F8D #5E2ABF #7E4ED8 #A380E3 #C7B2EE

Accessibility & contrast

On white

5.29
#7E4ED8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#7E4ED8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4ED8
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4ED8#FFFFFF#000000##FFFFFF
##7E4ED81.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDC
Deuteranopia (green-blind)
#0069D5
Tritanopia (blue-blind)
#666E8C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7e4ed8;
/* rgb */ color: rgb(126, 78, 216);
/* oklch */ color: oklch(55.1% 0.201 294.9);
Tailwind
colors: {
  custom: {
    50: '#aa82e5',
    500: '#7e4ed8',
    950: '#000000',
  },
}
SCSS
$custom: #7e4ed8;
$custom-light: #aa82e5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4ed8",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 216
  },
  "hsl": {
    "h": 260.87,
    "s": 63.889,
    "l": 57.647
  },
  "oklch": {
    "l": 0.55108,
    "c": 0.201,
    "h": 294.9
  },
  "luminance": 0.14842
}

Semantic roles & 50–950 ramp

primary
#7E4ED8
secondary
#C9DDA5
accent
#E741AD
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E4ED8

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

Preview Lab → · Contrast checker → · Palette generator →

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