#7E4AD8#7E4AD8

#7E4AD8 is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.6% C 0.206 H 295.6°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#7E4AD8
RGBrgb(126, 74, 216)
HSLhsl(262, 65%, 57%)
HSVhsv(262, 66%, 85%)
CMYKcmyk(41.7%, 65.7%, 0%, 15.3%)
CIE-LABlab(44.65, 52.16, -65.10)
CIE-LCHlch(44.65, 83.42, 308.70°)
OKLaboklab(54.55% 0.089 -0.1859)
OKLCHoklch(54.55% 0.206 295.6)
XYZxyz(23.4444, 14.2905, 66.4756)
Luminance0.1429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4AD8 #A4D84A
analogous
#4A5DD8 #7E4AD8 #C54AD8
triadic
#7E4AD8 #D87E4A #4AD87E
tetradic
#7E4AD8 #D84A5D #A4D84A #4AD8C5
square
#7E4AD8 #D84A5D #A4D84A #4AD8C5
split-complementary
#7E4AD8 #D8C54A #5DD84A
monochromatic
#451E8A #5F29BC #7E4AD8 #A27CE3 #C6AFEE

Accessibility & contrast

On white

5.44
#7E4AD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#7E4AD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4AD8
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4AD8#FFFFFF#000000##FFFFFF
##7E4AD81.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDC
Deuteranopia (green-blind)
#0068D5
Tritanopia (blue-blind)
#666C8B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e4ad8;
/* rgb */ color: rgb(126, 74, 216);
/* oklch */ color: oklch(54.6% 0.206 295.6);
Tailwind
colors: {
  custom: {
    50: '#aa80e5',
    500: '#7e4ad8',
    950: '#000000',
  },
}
SCSS
$custom: #7e4ad8;
$custom-light: #aa80e5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4ad8",
  "rgb": {
    "r": 126,
    "g": 74,
    "b": 216
  },
  "hsl": {
    "h": 261.972,
    "s": 64.545,
    "l": 56.863
  },
  "oklch": {
    "l": 0.54553,
    "c": 0.20611,
    "h": 295.6
  },
  "luminance": 0.14291
}

Semantic roles & 50–950 ramp

primary
#7E4AD8
secondary
#C7DCA2
accent
#E840AA
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7E4AD8

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

Preview Lab → · Contrast checker → · Palette generator →

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