#7E4AC0#7E4AC0

#7E4AC0 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.8% C 0.178 H 300.7°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#7E4AC0
RGBrgb(126, 74, 192)
HSLhsl(266, 48%, 52%)
HSVhsv(266, 61%, 75%)
CMYKcmyk(34.4%, 61.5%, 0%, 24.7%)
CIE-LABlab(42.97, 45.98, -53.96)
CIE-LCHlch(42.97, 70.90, 310.43°)
OKLaboklab(52.81% 0.0911 -0.1532)
OKLCHoklch(52.81% 0.178 300.7)
XYZxyz(20.5651, 13.1388, 51.3115)
Luminance0.1314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4AC0 #8CC04A
analogous
#4A51C0 #7E4AC0 #B94AC0
triadic
#7E4AC0 #C07E4A #4AC07E
tetradic
#7E4AC0 #C04A51 #8CC04A #4AC0B9
square
#7E4AC0 #C04A51 #8CC04A #4AC0B9
split-complementary
#7E4AC0 #C0B94A #51C04A
monochromatic
#44256B #613598 #7E4AC0 #9E77D0 #BFA5E0

Accessibility & contrast

On white

5.79
#7E4AC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#7E4AC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4AC0
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4AC0#FFFFFF#000000##FFFFFF
##7E4AC01.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C4
Deuteranopia (green-blind)
#2165BD
Tritanopia (blue-blind)
#70637E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7e4ac0;
/* rgb */ color: rgb(126, 74, 192);
/* oklch */ color: oklch(52.8% 0.178 300.7);
Tailwind
colors: {
  custom: {
    50: '#a87fd4',
    500: '#7e4ac0',
    950: '#000000',
  },
}
SCSS
$custom: #7e4ac0;
$custom-light: #a87fd4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4ac0",
  "rgb": {
    "r": 126,
    "g": 74,
    "b": 192
  },
  "hsl": {
    "h": 266.441,
    "s": 48.361,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52811,
    "c": 0.17819,
    "h": 300.7
  },
  "luminance": 0.13139
}

Semantic roles & 50–950 ramp

primary
#7E4AC0
secondary
#B6CD99
accent
#D8509C
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7E4AC0

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

Preview Lab → · Contrast checker → · Palette generator →

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