#7E4DE8#7E4DE8

#7E4DE8 is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.2% C 0.221 H 292.3°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#7E4DE8
RGBrgb(126, 77, 232)
HSLhsl(259, 77%, 61%)
HSVhsv(259, 67%, 91%)
CMYKcmyk(45.7%, 66.8%, 0%, 9%)
CIE-LABlab(46.40, 54.84, -71.34)
CIE-LCHlch(46.40, 89.98, 307.55°)
OKLaboklab(56.19% 0.0839 -0.2043)
OKLCHoklch(56.19% 0.221 292.3)
XYZxyz(25.8195, 15.5687, 77.9729)
Luminance0.1557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4DE8 #B7E84D
analogous
#4D69E8 #7E4DE8 #CC4DE8
triadic
#7E4DE8 #E87E4D #4DE87E
tetradic
#7E4DE8 #E84D69 #B7E84D #4DE8CC
square
#7E4DE8 #E84D69 #B7E84D #4DE8CC
split-complementary
#7E4DE8 #E8CC4D #69E84D
monochromatic
#4315A5 #591CDB #7E4DE8 #A583EF #CDB9F6

Accessibility & contrast

On white

5.10
#7E4DE8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7E4DE8
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4DE8#FFFFFF#000000##FFFFFF
##7E4DE81.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070ED
Deuteranopia (green-blind)
#006BE5
Tritanopia (blue-blind)
#5E7394
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7e4de8;
/* rgb */ color: rgb(126, 77, 232);
/* oklch */ color: oklch(56.2% 0.221 292.3);
Tailwind
colors: {
  custom: {
    50: '#ab82f0',
    500: '#7e4de8',
    950: '#000000',
  },
}
SCSS
$custom: #7e4de8;
$custom-light: #ab82f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4de8",
  "rgb": {
    "r": 126,
    "g": 77,
    "b": 232
  },
  "hsl": {
    "h": 258.968,
    "s": 77.114,
    "l": 60.588
  },
  "oklch": {
    "l": 0.56188,
    "c": 0.2208,
    "h": 292.3
  },
  "luminance": 0.1557
}

Semantic roles & 50–950 ramp

primary
#7E4DE8
secondary
#D3E6AB
accent
#D90C98
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E4DE8

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

Preview Lab → · Contrast checker → · Palette generator →

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