#7E4DEA#7E4DEA

#7E4DEA is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.3% C 0.223 H 292.0°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#7E4DEA
RGBrgb(126, 77, 234)
HSLhsl(259, 79%, 61%)
HSVhsv(259, 67%, 92%)
CMYKcmyk(46.2%, 67.1%, 0%, 8.2%)
CIE-LABlab(46.56, 55.38, -72.22)
CIE-LCHlch(46.56, 91.01, 307.48°)
OKLaboklab(56.35% 0.0836 -0.2068)
OKLCHoklch(56.35% 0.223 292)
XYZxyz(26.1052, 15.6830, 79.4776)
Luminance0.1568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4DEA #B9EA4D
analogous
#4D6AEA #7E4DEA #CC4DEA
triadic
#7E4DEA #EA7E4D #4DEA7E
tetradic
#7E4DEA #EA4D6A #B9EA4D #4DEACC
square
#7E4DEA #EA4D6A #B9EA4D #4DEACC
split-complementary
#7E4DEA #EACC4D #6AEA4D
monochromatic
#4214A9 #581ADF #7E4DEA #A684F0 #CDBAF7

Accessibility & contrast

On white

5.08
#7E4DEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#7E4DEA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4DEA
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4DEA#FFFFFF#000000##FFFFFF
##7E4DEA1.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EF
Deuteranopia (green-blind)
#006BE7
Tritanopia (blue-blind)
#5D7495
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7e4dea;
/* rgb */ color: rgb(126, 77, 234);
/* oklch */ color: oklch(56.3% 0.223 292.0);
Tailwind
colors: {
  custom: {
    50: '#ac82f2',
    500: '#7e4dea',
    950: '#000000',
  },
}
SCSS
$custom: #7e4dea;
$custom-light: #ac82f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4dea",
  "rgb": {
    "r": 126,
    "g": 77,
    "b": 234
  },
  "hsl": {
    "h": 258.726,
    "s": 78.894,
    "l": 60.98
  },
  "oklch": {
    "l": 0.56345,
    "c": 0.22309,
    "h": 292
  },
  "luminance": 0.15684
}

Semantic roles & 50–950 ramp

primary
#7E4DEA
secondary
#D5E7AC
accent
#DB0A9A
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E4DEA

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

Preview Lab → · Contrast checker → · Palette generator →

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