#7E4EAC#7E4EAC

#7E4EAC is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.1% C 0.148 H 305.4°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#7E4EAC
RGBrgb(126, 78, 172)
HSLhsl(271, 38%, 49%)
HSVhsv(271, 55%, 67%)
CMYKcmyk(26.7%, 54.7%, 0%, 32.5%)
CIE-LABlab(42.56, 38.79, -42.89)
CIE-LCHlch(42.56, 57.83, 312.12°)
OKLaboklab(52.11% 0.0859 -0.1207)
OKLCHoklch(52.11% 0.148 305.4)
XYZxyz(18.7734, 12.8631, 40.5155)
Luminance0.1286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4EAC #7CAC4E
analogous
#4F4EAC #7E4EAC #AC4EAB
triadic
#7E4EAC #AC7E4E #4EAC7E
tetradic
#7E4EAC #AC4F4E #7CAC4E #4EABAC
square
#7E4EAC #AC4F4E #7CAC4E #4EABAC
split-complementary
#7E4EAC #ABAC4E #4EAC4F
monochromatic
#402858 #5F3B82 #7E4EAC #9C76C1 #BBA0D4

Accessibility & contrast

On white

5.88
#7E4EAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7E4EAC
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4EAC#FFFFFF#000000##FFFFFF
##7E4EAC1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E63AF
Deuteranopia (green-blind)
#3E65AA
Tritanopia (blue-blind)
#765F75
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7e4eac;
/* rgb */ color: rgb(126, 78, 172);
/* oklch */ color: oklch(52.1% 0.148 305.4);
Tailwind
colors: {
  custom: {
    50: '#a681c5',
    500: '#7e4eac',
    950: '#000000',
  },
}
SCSS
$custom: #7e4eac;
$custom-light: #a681c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4eac",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 172
  },
  "hsl": {
    "h": 270.638,
    "s": 37.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.52107,
    "c": 0.14813,
    "h": 305.4
  },
  "luminance": 0.12863
}

Semantic roles & 50–950 ramp

primary
#7E4EAC
secondary
#AAC195
accent
#CE5A93
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7E4EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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