#7E4ABE#7E4ABE

#7E4ABE is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.7% C 0.176 H 301.2°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#7E4ABE
RGBrgb(126, 74, 190)
HSLhsl(267, 47%, 52%)
HSVhsv(267, 61%, 75%)
CMYKcmyk(33.7%, 61.1%, 0%, 25.5%)
CIE-LABlab(42.84, 45.48, -53.01)
CIE-LCHlch(42.84, 69.84, 310.63°)
OKLaboklab(52.67% 0.0911 -0.1504)
OKLCHoklch(52.67% 0.176 301.2)
XYZxyz(20.3450, 13.0508, 50.1524)
Luminance0.1305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4ABE #8ABE4A
analogous
#4A50BE #7E4ABE #B84ABE
triadic
#7E4ABE #BE7E4A #4ABE7E
tetradic
#7E4ABE #BE4A50 #8ABE4A #4ABEB8
square
#7E4ABE #BE4A50 #8ABE4A #4ABEB8
split-complementary
#7E4ABE #BEB84A #50BE4A
monochromatic
#432568 #603695 #7E4ABE #9E77CE #BEA4DE

Accessibility & contrast

On white

5.82
#7E4ABE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#7E4ABE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4ABE
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4ABE#FFFFFF#000000##FFFFFF
##7E4ABE1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C2
Deuteranopia (green-blind)
#2565BB
Tritanopia (blue-blind)
#71627D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7e4abe;
/* rgb */ color: rgb(126, 74, 190);
/* oklch */ color: oklch(52.7% 0.176 301.2);
Tailwind
colors: {
  custom: {
    50: '#a87fd2',
    500: '#7e4abe',
    950: '#000000',
  },
}
SCSS
$custom: #7e4abe;
$custom-light: #a87fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4abe",
  "rgb": {
    "r": 126,
    "g": 74,
    "b": 190
  },
  "hsl": {
    "h": 266.897,
    "s": 47.154,
    "l": 51.765
  },
  "oklch": {
    "l": 0.52673,
    "c": 0.17583,
    "h": 301.2
  },
  "luminance": 0.13051
}

Semantic roles & 50–950 ramp

primary
#7E4ABE
secondary
#B5CB98
accent
#D7519B
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7E4ABE

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

Preview Lab → · Contrast checker → · Palette generator →

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