#7E4DC4#7E4DC4

#7E4DC4 is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.5% C 0.179 H 299.3°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#7E4DC4
RGBrgb(126, 77, 196)
HSLhsl(265, 50%, 54%)
HSVhsv(265, 61%, 77%)
CMYKcmyk(35.7%, 60.7%, 0%, 23.1%)
CIE-LABlab(43.84, 45.38, -54.89)
CIE-LCHlch(43.84, 71.22, 309.59°)
OKLaboklab(53.53% 0.0873 -0.1559)
OKLCHoklch(53.53% 0.179 299.3)
XYZxyz(21.2194, 13.7287, 53.7458)
Luminance0.1373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4DC4 #93C44D
analogous
#4D57C4 #7E4DC4 #B94DC4
triadic
#7E4DC4 #C47E4D #4DC47E
tetradic
#7E4DC4 #C44D57 #93C44D #4DC4B9
square
#7E4DC4 #C44D57 #93C44D #4DC4B9
split-complementary
#7E4DC4 #C4B94D #57C44D
monochromatic
#452571 #61359F #7E4DC4 #9F7BD3 #C1A9E2

Accessibility & contrast

On white

5.61
#7E4DC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#7E4DC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4DC4
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4DC4#FFFFFF#000000##FFFFFF
##7E4DC41.005.613.755.61
#FFFFFF5.611.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C8
Deuteranopia (green-blind)
#2067C1
Tritanopia (blue-blind)
#6F6681
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7e4dc4;
/* rgb */ color: rgb(126, 77, 196);
/* oklch */ color: oklch(53.5% 0.179 299.3);
Tailwind
colors: {
  custom: {
    50: '#a881d7',
    500: '#7e4dc4',
    950: '#000000',
  },
}
SCSS
$custom: #7e4dc4;
$custom-light: #a881d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4dc4",
  "rgb": {
    "r": 126,
    "g": 77,
    "b": 196
  },
  "hsl": {
    "h": 264.706,
    "s": 50.211,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53529,
    "c": 0.17866,
    "h": 299.3
  },
  "luminance": 0.13729
}

Semantic roles & 50–950 ramp

primary
#7E4DC4
secondary
#BBD09D
accent
#DA4EA0
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7E4DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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