#7E4DC7#7E4DC7

#7E4DC7 is a mid, vivid violet. Relative luminance 0.139; OKLCH L 53.7% C 0.182 H 298.6°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#7E4DC7
RGBrgb(126, 77, 199)
HSLhsl(264, 52%, 54%)
HSVhsv(264, 61%, 78%)
CMYKcmyk(36.7%, 61.3%, 0%, 22%)
CIE-LABlab(44.04, 46.16, -56.30)
CIE-LCHlch(44.04, 72.80, 309.35°)
OKLaboklab(53.74% 0.0872 -0.16)
OKLCHoklch(53.74% 0.182 298.6)
XYZxyz(21.5643, 13.8666, 55.5622)
Luminance0.1387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4DC7 #96C74D
analogous
#4D59C7 #7E4DC7 #BB4DC7
triadic
#7E4DC7 #C77E4D #4DC77E
tetradic
#7E4DC7 #C74D59 #96C74D #4DC7BB
square
#7E4DC7 #C74D59 #96C74D #4DC7BB
split-complementary
#7E4DC7 #C7BB4D #59C74D
monochromatic
#452575 #6033A3 #7E4DC7 #A07CD6 #C1AAE4

Accessibility & contrast

On white

5.57
#7E4DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#7E4DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4DC7
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4DC7#FFFFFF#000000##FFFFFF
##7E4DC71.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CB
Deuteranopia (green-blind)
#1A67C4
Tritanopia (blue-blind)
#6D6783
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7e4dc7;
/* rgb */ color: rgb(126, 77, 199);
/* oklch */ color: oklch(53.7% 0.182 298.6);
Tailwind
colors: {
  custom: {
    50: '#a881d9',
    500: '#7e4dc7',
    950: '#000000',
  },
}
SCSS
$custom: #7e4dc7;
$custom-light: #a881d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4dc7",
  "rgb": {
    "r": 126,
    "g": 77,
    "b": 199
  },
  "hsl": {
    "h": 264.098,
    "s": 52.137,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53738,
    "c": 0.18224,
    "h": 298.6
  },
  "luminance": 0.13867
}

Semantic roles & 50–950 ramp

primary
#7E4DC7
secondary
#BDD29E
accent
#DC4CA2
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7E4DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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