#7E4DCA#7E4DCA

#7E4DCA is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.9% C 0.186 H 297.9°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#7E4DCA
RGBrgb(126, 77, 202)
HSLhsl(264, 54%, 55%)
HSVhsv(264, 62%, 79%)
CMYKcmyk(37.6%, 61.9%, 0%, 20.8%)
CIE-LABlab(44.24, 46.93, -57.71)
CIE-LCHlch(44.24, 74.39, 309.12°)
OKLaboklab(53.95% 0.087 -0.1642)
OKLCHoklch(53.95% 0.186 297.9)
XYZxyz(21.9160, 14.0073, 57.4147)
Luminance0.1401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4DCA #99CA4D
analogous
#4D5BCA #7E4DCA #BD4DCA
triadic
#7E4DCA #CA7E4D #4DCA7E
tetradic
#7E4DCA #CA4D5B #99CA4D #4DCABD
square
#7E4DCA #CA4D5B #99CA4D #4DCABD
split-complementary
#7E4DCA #CABD4D #5BCA4D
monochromatic
#452479 #6032A8 #7E4DCA #A07CD8 #C2ABE6

Accessibility & contrast

On white

5.52
#7E4DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#7E4DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4DCA
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4DCA#FFFFFF#000000##FFFFFF
##7E4DCA1.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CE
Deuteranopia (green-blind)
#1267C7
Tritanopia (blue-blind)
#6C6984
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7e4dca;
/* rgb */ color: rgb(126, 77, 202);
/* oklch */ color: oklch(53.9% 0.186 297.9);
Tailwind
colors: {
  custom: {
    50: '#a881db',
    500: '#7e4dca',
    950: '#000000',
  },
}
SCSS
$custom: #7e4dca;
$custom-light: #a881db;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4dca",
  "rgb": {
    "r": 126,
    "g": 77,
    "b": 202
  },
  "hsl": {
    "h": 263.52,
    "s": 54.113,
    "l": 54.706
  },
  "oklch": {
    "l": 0.53949,
    "c": 0.18581,
    "h": 297.9
  },
  "luminance": 0.14008
}

Semantic roles & 50–950 ramp

primary
#7E4DCA
secondary
#BFD49F
accent
#DD4AA4
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7E4DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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