#7E4ED9#7E4ED9

#7E4ED9 is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.2% C 0.202 H 294.8°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#7E4ED9
RGBrgb(126, 78, 217)
HSLhsl(261, 65%, 58%)
HSVhsv(261, 64%, 85%)
CMYKcmyk(41.9%, 64.1%, 0%, 14.9%)
CIE-LABlab(45.49, 50.33, -64.31)
CIE-LCHlch(45.49, 81.66, 308.05°)
OKLaboklab(55.18% 0.0847 -0.1836)
OKLCHoklch(55.18% 0.202 294.8)
XYZxyz(23.8496, 14.8936, 67.2504)
Luminance0.1489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4ED9 #A9D94E
analogous
#4E64D9 #7E4ED9 #C34ED9
triadic
#7E4ED9 #D97E4E #4ED97E
tetradic
#7E4ED9 #D94E64 #A9D94E #4ED9C3
square
#7E4ED9 #D94E64 #A9D94E #4ED9C3
split-complementary
#7E4ED9 #D9C34E #64D94E
monochromatic
#451F8E #5E29C0 #7E4ED9 #A380E4 #C7B3EF

Accessibility & contrast

On white

5.28
#7E4ED9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#7E4ED9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4ED9
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4ED9#FFFFFF#000000##FFFFFF
##7E4ED91.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDD
Deuteranopia (green-blind)
#0069D6
Tritanopia (blue-blind)
#666E8D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7e4ed9;
/* rgb */ color: rgb(126, 78, 217);
/* oklch */ color: oklch(55.2% 0.202 294.8);
Tailwind
colors: {
  custom: {
    50: '#aa82e6',
    500: '#7e4ed9',
    950: '#000000',
  },
}
SCSS
$custom: #7e4ed9;
$custom-light: #aa82e6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4ed9",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 217
  },
  "hsl": {
    "h": 260.719,
    "s": 64.651,
    "l": 57.843
  },
  "oklch": {
    "l": 0.55182,
    "c": 0.20218,
    "h": 294.8
  },
  "luminance": 0.14894
}

Semantic roles & 50–950 ramp

primary
#7E4ED9
secondary
#CADDA6
accent
#E840AE
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E4ED9

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

Preview Lab → · Contrast checker → · Palette generator →

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