#7E4ED7#7E4ED7

#7E4ED7 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 55.0% C 0.200 H 295.1°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#7E4ED7
RGBrgb(126, 78, 215)
HSLhsl(261, 63%, 57%)
HSVhsv(261, 64%, 84%)
CMYKcmyk(41.4%, 63.7%, 0%, 15.7%)
CIE-LABlab(45.35, 49.80, -63.40)
CIE-LCHlch(45.35, 80.62, 308.15°)
OKLaboklab(55.03% 0.0849 -0.1809)
OKLCHoklch(55.03% 0.2 295.1)
XYZxyz(23.5911, 14.7902, 65.8886)
Luminance0.1479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4ED7 #A7D74E
analogous
#4E62D7 #7E4ED7 #C34ED7
triadic
#7E4ED7 #D77E4E #4ED77E
tetradic
#7E4ED7 #D74E62 #A7D74E #4ED7C3
square
#7E4ED7 #D74E62 #A7D74E #4ED7C3
split-complementary
#7E4ED7 #D7C34E #62D74E
monochromatic
#451F8B #5E2BBD #7E4ED7 #A280E2 #C7B2EE

Accessibility & contrast

On white

5.31
#7E4ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#7E4ED7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4ED7
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4ED7#FFFFFF#000000##FFFFFF
##7E4ED71.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDB
Deuteranopia (green-blind)
#0069D4
Tritanopia (blue-blind)
#676E8B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7e4ed7;
/* rgb */ color: rgb(126, 78, 215);
/* oklch */ color: oklch(55.0% 0.200 295.1);
Tailwind
colors: {
  custom: {
    50: '#aa82e4',
    500: '#7e4ed7',
    950: '#000000',
  },
}
SCSS
$custom: #7e4ed7;
$custom-light: #aa82e4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4ed7",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 215
  },
  "hsl": {
    "h": 261.022,
    "s": 63.134,
    "l": 57.451
  },
  "oklch": {
    "l": 0.55034,
    "c": 0.19983,
    "h": 295.1
  },
  "luminance": 0.14791
}

Semantic roles & 50–950 ramp

primary
#7E4ED7
secondary
#C9DCA5
accent
#E642AD
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E4ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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