#7E4ECD#7E4ECD

#7E4ECD is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.3% C 0.188 H 297.1°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#7E4ECD
RGBrgb(126, 78, 205)
HSLhsl(263, 56%, 55%)
HSVhsv(263, 62%, 80%)
CMYKcmyk(38.5%, 62%, 0%, 19.6%)
CIE-LABlab(44.65, 47.18, -58.79)
CIE-LCHlch(44.65, 75.38, 308.75°)
OKLaboklab(54.31% 0.0857 -0.1673)
OKLCHoklch(54.31% 0.188 297.1)
XYZxyz(22.3452, 14.2918, 59.3271)
Luminance0.1429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4ECD #9DCD4E
analogous
#4E5DCD #7E4ECD #BD4ECD
triadic
#7E4ECD #CD7E4E #4ECD7E
tetradic
#7E4ECD #CD4E5D #9DCD4E #4ECDBD
square
#7E4ECD #CD4E5D #9DCD4E #4ECDBD
split-complementary
#7E4ECD #CDBD4E #5DCD4E
monochromatic
#45237D #6031AD #7E4ECD #A17EDA #C4ADE8

Accessibility & contrast

On white

5.44
#7E4ECD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#7E4ECD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4ECD
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4ECD#FFFFFF#000000##FFFFFF
##7E4ECD1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD1
Deuteranopia (green-blind)
#0A68CA
Tritanopia (blue-blind)
#6B6A86
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e4ecd;
/* rgb */ color: rgb(126, 78, 205);
/* oklch */ color: oklch(54.3% 0.188 297.1);
Tailwind
colors: {
  custom: {
    50: '#a982dd',
    500: '#7e4ecd',
    950: '#000000',
  },
}
SCSS
$custom: #7e4ecd;
$custom-light: #a982dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4ecd",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 205
  },
  "hsl": {
    "h": 262.677,
    "s": 55.947,
    "l": 55.49
  },
  "oklch": {
    "l": 0.54308,
    "c": 0.188,
    "h": 297.1
  },
  "luminance": 0.14292
}

Semantic roles & 50–950 ramp

primary
#7E4ECD
secondary
#C2D6A1
accent
#DF49A6
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7E4ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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