#7E4EAF#7E4EAF

#7E4EAF is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.3% C 0.152 H 304.5°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#7E4EAF
RGBrgb(126, 78, 175)
HSLhsl(270, 38%, 50%)
HSVhsv(270, 55%, 69%)
CMYKcmyk(28%, 55.4%, 0%, 31.4%)
CIE-LABlab(42.73, 39.53, -44.38)
CIE-LCHlch(42.73, 59.43, 311.69°)
OKLaboklab(52.29% 0.086 -0.1251)
OKLCHoklch(52.29% 0.152 304.5)
XYZxyz(19.0648, 12.9796, 42.0501)
Luminance0.1298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4EAF #7FAF4E
analogous
#4E4EAF #7E4EAF #AF4EAF
triadic
#7E4EAF #AF7E4E #4EAF7E
tetradic
#7E4EAF #AF4E4E #7FAF4E #4EAFAF
square
#7E4EAF #AF4E4E #7FAF4E #4EAFAF
split-complementary
#7E4EAF #AFAF4E #4EAF4E
monochromatic
#41285A #603B85 #7E4EAF #9D78C3 #BBA2D6

Accessibility & contrast

On white

5.84
#7E4EAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#7E4EAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4EAF
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4EAF#FFFFFF#000000##FFFFFF
##7E4EAF1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B64B2
Deuteranopia (green-blind)
#3C65AD
Tritanopia (blue-blind)
#756077
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7e4eaf;
/* rgb */ color: rgb(126, 78, 175);
/* oklch */ color: oklch(52.3% 0.152 304.5);
Tailwind
colors: {
  custom: {
    50: '#a681c7',
    500: '#7e4eaf',
    950: '#000000',
  },
}
SCSS
$custom: #7e4eaf;
$custom-light: #a681c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4eaf",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 175
  },
  "hsl": {
    "h": 269.691,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.52294,
    "c": 0.15179,
    "h": 304.5
  },
  "luminance": 0.1298
}

Semantic roles & 50–950 ramp

primary
#7E4EAF
secondary
#ADC396
accent
#CE5A95
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7E4EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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