#7E4EE5#7E4EE5

#7E4EE5 is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.1% C 0.216 H 292.7°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#7E4EE5
RGBrgb(126, 78, 229)
HSLhsl(259, 74%, 60%)
HSVhsv(259, 66%, 90%)
CMYKcmyk(45%, 65.9%, 0%, 10.2%)
CIE-LABlab(46.37, 53.52, -69.71)
CIE-LCHlch(46.37, 87.88, 307.52°)
OKLaboklab(56.09% 0.0833 -0.1994)
OKLCHoklch(56.09% 0.216 292.7)
XYZxyz(25.4675, 15.5407, 75.7714)
Luminance0.1554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4EE5 #B5E54E
analogous
#4E69E5 #7E4EE5 #CA4EE5
triadic
#7E4EE5 #E57E4E #4EE57E
tetradic
#7E4EE5 #E54E69 #B5E54E #4EE5CA
square
#7E4EE5 #E54E69 #B5E54E #4EE5CA
split-complementary
#7E4EE5 #E5CA4E #69E54E
monochromatic
#4318A1 #5A1FD6 #7E4EE5 #A583ED #CCB9F5

Accessibility & contrast

On white

5.11
#7E4EE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#7E4EE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4EE5
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4EE5#FFFFFF#000000##FFFFFF
##7E4EE51.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070EA
Deuteranopia (green-blind)
#006BE2
Tritanopia (blue-blind)
#607393
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7e4ee5;
/* rgb */ color: rgb(126, 78, 229);
/* oklch */ color: oklch(56.1% 0.216 292.7);
Tailwind
colors: {
  custom: {
    50: '#ab82ee',
    500: '#7e4ee5',
    950: '#000000',
  },
}
SCSS
$custom: #7e4ee5;
$custom-light: #ab82ee;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4ee5",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 229
  },
  "hsl": {
    "h": 259.073,
    "s": 74.384,
    "l": 60.196
  },
  "oklch": {
    "l": 0.56091,
    "c": 0.21615,
    "h": 292.7
  },
  "luminance": 0.15542
}

Semantic roles & 50–950 ramp

primary
#7E4EE5
secondary
#D2E4AA
accent
#D70F97
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E4EE5

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

Preview Lab → · Contrast checker → · Palette generator →

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