#7E4ECA#7E4ECA

#7E4ECA is a mid, vivid violet. Relative luminance 0.141; OKLCH L 54.1% C 0.184 H 297.7°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#7E4ECA
RGBrgb(126, 78, 202)
HSLhsl(263, 54%, 55%)
HSVhsv(263, 61%, 79%)
CMYKcmyk(37.6%, 61.4%, 0%, 20.8%)
CIE-LABlab(44.44, 46.39, -57.39)
CIE-LCHlch(44.44, 73.79, 308.95°)
OKLaboklab(54.1% 0.0858 -0.1632)
OKLCHoklch(54.1% 0.184 297.7)
XYZxyz(21.9865, 14.1483, 57.4382)
Luminance0.1415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4ECA #9ACA4E
analogous
#4E5CCA #7E4ECA #BC4ECA
triadic
#7E4ECA #CA7E4E #4ECA7E
tetradic
#7E4ECA #CA4E5C #9ACA4E #4ECABC
square
#7E4ECA #CA4E5C #9ACA4E #4ECABC
split-complementary
#7E4ECA #CABC4E #5CCA4E
monochromatic
#452479 #6032A8 #7E4ECA #A07DD8 #C3ACE6

Accessibility & contrast

On white

5.48
#7E4ECA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#7E4ECA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4ECA
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4ECA#FFFFFF#000000##FFFFFF
##7E4ECA1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e4eca;
/* rgb */ color: rgb(126, 78, 202);
/* oklch */ color: oklch(54.1% 0.184 297.7);
Tailwind
colors: {
  custom: {
    50: '#a882db',
    500: '#7e4eca',
    950: '#000000',
  },
}
SCSS
$custom: #7e4eca;
$custom-light: #a882db;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4eca",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 202
  },
  "hsl": {
    "h": 263.226,
    "s": 53.913,
    "l": 54.902
  },
  "oklch": {
    "l": 0.54096,
    "c": 0.18442,
    "h": 297.7
  },
  "luminance": 0.14149
}

Semantic roles & 50–950 ramp

primary
#7E4ECA
secondary
#C0D4A0
accent
#DD4BA4
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7E4ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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