#7E4CDA#7E4CDA

#7E4CDA is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.0% C 0.206 H 294.9°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#7E4CDA
RGBrgb(126, 76, 218)
HSLhsl(261, 66%, 58%)
HSVhsv(261, 65%, 85%)
CMYKcmyk(42.2%, 65.1%, 0%, 14.5%)
CIE-LABlab(45.17, 51.65, -65.39)
CIE-LCHlch(45.17, 83.33, 308.30°)
OKLaboklab(54.98% 0.0867 -0.1868)
OKLCHoklch(54.98% 0.206 294.9)
XYZxyz(23.8401, 14.6659, 67.8908)
Luminance0.1467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4CDA #A8DA4C
analogous
#4C61DA #7E4CDA #C54CDA
triadic
#7E4CDA #DA7E4C #4CDA7E
tetradic
#7E4CDA #DA4C61 #A8DA4C #4CDAC5
square
#7E4CDA #DA4C61 #A8DA4C #4CDAC5
split-complementary
#7E4CDA #DAC54C #61DA4C
monochromatic
#451D8E #5E28C1 #7E4CDA #A37FE4 #C7B1EF

Accessibility & contrast

On white

5.34
#7E4CDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#7E4CDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4CDA
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4CDA#FFFFFF#000000##FFFFFF
##7E4CDA1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDE
Deuteranopia (green-blind)
#0069D7
Tritanopia (blue-blind)
#656D8C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7e4cda;
/* rgb */ color: rgb(126, 76, 218);
/* oklch */ color: oklch(55.0% 0.206 294.9);
Tailwind
colors: {
  custom: {
    50: '#aa81e6',
    500: '#7e4cda',
    950: '#000000',
  },
}
SCSS
$custom: #7e4cda;
$custom-light: #aa81e6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4cda",
  "rgb": {
    "r": 126,
    "g": 76,
    "b": 218
  },
  "hsl": {
    "h": 261.127,
    "s": 65.741,
    "l": 57.647
  },
  "oklch": {
    "l": 0.54978,
    "c": 0.2059,
    "h": 294.9
  },
  "luminance": 0.14666
}

Semantic roles & 50–950 ramp

primary
#7E4CDA
secondary
#C9DDA4
accent
#E93FAD
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7E4CDA

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

Preview Lab → · Contrast checker → · Palette generator →

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