#7E4AAA#7E4AAA

#7E4AAA is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.4% C 0.152 H 306.8°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#7E4AAA
RGBrgb(126, 74, 170)
HSLhsl(273, 39%, 48%)
HSVhsv(273, 56%, 67%)
CMYKcmyk(25.9%, 56.5%, 0%, 33.3%)
CIE-LABlab(41.59, 40.53, -43.25)
CIE-LCHlch(41.59, 59.28, 313.14°)
OKLaboklab(51.36% 0.0912 -0.1217)
OKLCHoklch(51.36% 0.152 306.8)
XYZxyz(18.3072, 12.2356, 39.4197)
Luminance0.1224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4AAA #76AA4A
analogous
#4E4AAA #7E4AAA #AA4AA6
triadic
#7E4AAA #AA7E4A #4AAA7E
tetradic
#7E4AAA #AA4E4A #76AA4A #4AA6AA
square
#7E4AAA #AA4E4A #76AA4A #4AA6AA
split-complementary
#7E4AAA #A6AA4A #4AAA4E
monochromatic
#3F2555 #5E377F #7E4AAA #9C70C1 #BA9BD3

Accessibility & contrast

On white

6.09
#7E4AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7E4AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4AAA
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4AAA#FFFFFF#000000##FFFFFF
##7E4AAA1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2860AD
Deuteranopia (green-blind)
#3B63A8
Tritanopia (blue-blind)
#775C73
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7e4aaa;
/* rgb */ color: rgb(126, 74, 170);
/* oklch */ color: oklch(51.4% 0.152 306.8);
Tailwind
colors: {
  custom: {
    50: '#a67fc4',
    500: '#7e4aaa',
    950: '#000000',
  },
}
SCSS
$custom: #7e4aaa;
$custom-light: #a67fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4aaa",
  "rgb": {
    "r": 126,
    "g": 74,
    "b": 170
  },
  "hsl": {
    "h": 272.5,
    "s": 39.344,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51357,
    "c": 0.1521,
    "h": 306.8
  },
  "luminance": 0.12235
}

Semantic roles & 50–950 ramp

primary
#7E4AAA
secondary
#A6C090
accent
#CF598F
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7E4AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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