#7E4FE8#7E4FE8

#7E4FE8 is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.5% C 0.218 H 292.0°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#7E4FE8
RGBrgb(126, 79, 232)
HSLhsl(258, 77%, 61%)
HSVhsv(258, 66%, 91%)
CMYKcmyk(45.7%, 65.9%, 0%, 9%)
CIE-LABlab(46.78, 53.81, -70.73)
CIE-LCHlch(46.78, 88.87, 307.26°)
OKLaboklab(56.46% 0.0819 -0.2025)
OKLCHoklch(56.46% 0.218 292)
XYZxyz(25.9616, 15.8529, 78.0203)
Luminance0.1585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4FE8 #B9E84F
analogous
#4F6CE8 #7E4FE8 #CA4FE8
triadic
#7E4FE8 #E87E4F #4FE87E
tetradic
#7E4FE8 #E84F6C #B9E84F #4FE8CA
square
#7E4FE8 #E84F6C #B9E84F #4FE8CA
split-complementary
#7E4FE8 #E8CA4F #6CE84F
monochromatic
#4216A7 #581DDD #7E4FE8 #A685EF #CDBBF6

Accessibility & contrast

On white

5.04
#7E4FE8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#7E4FE8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4FE8
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4FE8#FFFFFF#000000##FFFFFF
##7E4FE81.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071ED
Deuteranopia (green-blind)
#006CE5
Tritanopia (blue-blind)
#5E7495
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7e4fe8;
/* rgb */ color: rgb(126, 79, 232);
/* oklch */ color: oklch(56.5% 0.218 292.0);
Tailwind
colors: {
  custom: {
    50: '#ab83f0',
    500: '#7e4fe8',
    950: '#000000',
  },
}
SCSS
$custom: #7e4fe8;
$custom-light: #ab83f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4fe8",
  "rgb": {
    "r": 126,
    "g": 79,
    "b": 232
  },
  "hsl": {
    "h": 258.431,
    "s": 76.884,
    "l": 60.98
  },
  "oklch": {
    "l": 0.56459,
    "c": 0.21841,
    "h": 292
  },
  "luminance": 0.15854
}

Semantic roles & 50–950 ramp

primary
#7E4FE8
secondary
#D5E6AD
accent
#D90C9A
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E4FE8

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

Preview Lab → · Contrast checker → · Palette generator →

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