#7E4AEA#7E4AEA

#7E4AEA is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.0% C 0.227 H 292.4°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#7E4AEA
RGBrgb(126, 74, 234)
HSLhsl(260, 79%, 60%)
HSVhsv(260, 68%, 92%)
CMYKcmyk(46.2%, 68.4%, 0%, 8.2%)
CIE-LABlab(46.01, 56.89, -73.12)
CIE-LCHlch(46.01, 92.65, 307.89°)
OKLaboklab(55.95% 0.0864 -0.2095)
OKLCHoklch(55.95% 0.227 292.4)
XYZxyz(25.9001, 15.2728, 79.4092)
Luminance0.1527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4AEA #B6EA4A
analogous
#4A66EA #7E4AEA #CE4AEA
triadic
#7E4AEA #EA7E4A #4AEA7E
tetradic
#7E4AEA #EA4A66 #B6EA4A #4AEACE
square
#7E4AEA #EA4A66 #B6EA4A #4AEACE
split-complementary
#7E4AEA #EACE4A #66EA4A
monochromatic
#4313A6 #591ADD #7E4AEA #A581F0 #CCB8F7

Accessibility & contrast

On white

5.18
#7E4AEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#7E4AEA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4AEA
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4AEA#FFFFFF#000000##FFFFFF
##7E4AEA1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEF
Deuteranopia (green-blind)
#006AE7
Tritanopia (blue-blind)
#5D7295
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7e4aea;
/* rgb */ color: rgb(126, 74, 234);
/* oklch */ color: oklch(56.0% 0.227 292.4);
Tailwind
colors: {
  custom: {
    50: '#ac80f2',
    500: '#7e4aea',
    950: '#000000',
  },
}
SCSS
$custom: #7e4aea;
$custom-light: #ac80f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4aea",
  "rgb": {
    "r": 126,
    "g": 74,
    "b": 234
  },
  "hsl": {
    "h": 259.5,
    "s": 79.208,
    "l": 60.392
  },
  "oklch": {
    "l": 0.55952,
    "c": 0.22658,
    "h": 292.4
  },
  "luminance": 0.15274
}

Semantic roles & 50–950 ramp

primary
#7E4AEA
secondary
#D3E6A9
accent
#DC0A97
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110A17
muted
#807C85

Preview Lab

Preview with #7E4AEA

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

Preview Lab → · Contrast checker → · Palette generator →

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