#7E4CDD#7E4CDD

#7E4CDD is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.2% C 0.209 H 294.3°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#7E4CDD
RGBrgb(126, 76, 221)
HSLhsl(261, 68%, 58%)
HSVhsv(261, 66%, 87%)
CMYKcmyk(43%, 65.6%, 0%, 13.3%)
CIE-LABlab(45.39, 52.44, -66.75)
CIE-LCHlch(45.39, 84.88, 308.16°)
OKLaboklab(55.21% 0.0863 -0.1907)
OKLCHoklch(55.21% 0.209 294.3)
XYZxyz(24.2363, 14.8243, 69.9770)
Luminance0.1482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4CDD #ABDD4C
analogous
#4C62DD #7E4CDD #C74CDD
triadic
#7E4CDD #DD7E4C #4CDD7E
tetradic
#7E4CDD #DD4C62 #ABDD4C #4CDDC7
square
#7E4CDD #DD4C62 #ABDD4C #4CDDC7
split-complementary
#7E4CDD #DDC74C #62DD4C
monochromatic
#451C93 #5D26C6 #7E4CDD #A37FE7 #C8B3F1

Accessibility & contrast

On white

5.30
#7E4CDD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#7E4CDD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4CDD
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4CDD#FFFFFF#000000##FFFFFF
##7E4CDD1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE1
Deuteranopia (green-blind)
#0069DA
Tritanopia (blue-blind)
#646F8E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7e4cdd;
/* rgb */ color: rgb(126, 76, 221);
/* oklch */ color: oklch(55.2% 0.209 294.3);
Tailwind
colors: {
  custom: {
    50: '#aa81e9',
    500: '#7e4cdd',
    950: '#000000',
  },
}
SCSS
$custom: #7e4cdd;
$custom-light: #aa81e9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4cdd",
  "rgb": {
    "r": 126,
    "g": 76,
    "b": 221
  },
  "hsl": {
    "h": 260.69,
    "s": 68.075,
    "l": 58.235
  },
  "oklch": {
    "l": 0.55205,
    "c": 0.20937,
    "h": 294.3
  },
  "luminance": 0.14825
}

Semantic roles & 50–950 ramp

primary
#7E4CDD
secondary
#CBDFA6
accent
#EB3DAF
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7E4CDD

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

Preview Lab → · Contrast checker → · Palette generator →

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