#7E4EAB#7E4EAB

#7E4EAB is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.0% C 0.147 H 305.7°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#7E4EAB
RGBrgb(126, 78, 171)
HSLhsl(271, 37%, 49%)
HSVhsv(271, 54%, 67%)
CMYKcmyk(26.3%, 54.4%, 0%, 32.9%)
CIE-LABlab(42.50, 38.54, -42.39)
CIE-LCHlch(42.50, 57.30, 312.28°)
OKLaboklab(52.05% 0.0858 -0.1192)
OKLCHoklch(52.05% 0.147 305.7)
XYZxyz(18.6777, 12.8248, 40.0116)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4EAB #7BAB4E
analogous
#504EAB #7E4EAB #AB4EAA
triadic
#7E4EAB #AB7E4E #4EAB7E
tetradic
#7E4EAB #AB504E #7BAB4E #4EAAAB
square
#7E4EAB #AB504E #7BAB4E #4EAAAB
split-complementary
#7E4EAB #AAAB4E #4EAB50
monochromatic
#402857 #5F3B81 #7E4EAB #9C76C0 #BBA0D4

Accessibility & contrast

On white

5.89
#7E4EAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#7E4EAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4EAB
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4EAB#FFFFFF#000000##FFFFFF
##7E4EAB1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F63AE
Deuteranopia (green-blind)
#3F65A9
Tritanopia (blue-blind)
#775F75
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7e4eab;
/* rgb */ color: rgb(126, 78, 171);
/* oklch */ color: oklch(52.0% 0.147 305.7);
Tailwind
colors: {
  custom: {
    50: '#a681c4',
    500: '#7e4eab',
    950: '#000000',
  },
}
SCSS
$custom: #7e4eab;
$custom-light: #a681c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4eab",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 171
  },
  "hsl": {
    "h": 270.968,
    "s": 37.349,
    "l": 48.824
  },
  "oklch": {
    "l": 0.52046,
    "c": 0.14691,
    "h": 305.7
  },
  "luminance": 0.12825
}

Semantic roles & 50–950 ramp

primary
#7E4EAB
secondary
#AAC194
accent
#CD5A92
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7E4EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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