#7E4AD9#7E4AD9

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

Color values

HEX#7E4AD9
RGBrgb(126, 74, 217)
HSLhsl(262, 65%, 57%)
HSVhsv(262, 66%, 85%)
CMYKcmyk(41.9%, 65.9%, 0%, 14.9%)
CIE-LABlab(44.72, 52.42, -65.56)
CIE-LCHlch(44.72, 83.94, 308.65°)
OKLaboklab(54.63% 0.0889 -0.1872)
OKLCHoklch(54.63% 0.207 295.4)
XYZxyz(23.5740, 14.3424, 67.1585)
Luminance0.1434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4AD9 #A5D94A
analogous
#4A5ED9 #7E4AD9 #C54AD9
triadic
#7E4AD9 #D97E4A #4AD97E
tetradic
#7E4AD9 #D94A5E #A5D94A #4AD9C5
square
#7E4AD9 #D94A5E #A5D94A #4AD9C5
split-complementary
#7E4AD9 #D9C54A #5ED94A
monochromatic
#451D8B #5E28BE #7E4AD9 #A27DE4 #C6AFEE

Accessibility & contrast

On white

5.43
#7E4AD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#7E4AD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4AD9
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4AD9#FFFFFF#000000##FFFFFF
##7E4AD91.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e4ad9;
/* rgb */ color: rgb(126, 74, 217);
/* oklch */ color: oklch(54.6% 0.207 295.4);
Tailwind
colors: {
  custom: {
    50: '#aa80e6',
    500: '#7e4ad9',
    950: '#000000',
  },
}
SCSS
$custom: #7e4ad9;
$custom-light: #aa80e6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4ad9",
  "rgb": {
    "r": 126,
    "g": 74,
    "b": 217
  },
  "hsl": {
    "h": 261.818,
    "s": 65.297,
    "l": 57.059
  },
  "oklch": {
    "l": 0.54629,
    "c": 0.20726,
    "h": 295.4
  },
  "luminance": 0.14343
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E4AD9

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

Preview Lab → · Contrast checker → · Palette generator →

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