#7E4ABA#7E4ABA

#7E4ABA is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.4% C 0.171 H 302.2°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#7E4ABA
RGBrgb(126, 74, 186)
HSLhsl(268, 45%, 51%)
HSVhsv(268, 60%, 73%)
CMYKcmyk(32.3%, 60.2%, 0%, 27.1%)
CIE-LABlab(42.58, 44.47, -51.09)
CIE-LCHlch(42.58, 67.73, 311.04°)
OKLaboklab(52.4% 0.0913 -0.1447)
OKLCHoklch(52.4% 0.171 302.2)
XYZxyz(19.9138, 12.8783, 47.8815)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4ABA #86BA4A
analogous
#4A4EBA #7E4ABA #B64ABA
triadic
#7E4ABA #BA7E4A #4ABA7E
tetradic
#7E4ABA #BA4A4E #86BA4A #4ABAB6
square
#7E4ABA #BA4A4E #86BA4A #4ABAB6
split-complementary
#7E4ABA #BAB64A #4EBA4A
monochromatic
#432664 #603790 #7E4ABA #9E76CB #BDA3DC

Accessibility & contrast

On white

5.87
#7E4ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#7E4ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4ABA
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4ABA#FFFFFF#000000##FFFFFF
##7E4ABA1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B64BE
Deuteranopia (green-blind)
#2A64B7
Tritanopia (blue-blind)
#72617B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7e4aba;
/* rgb */ color: rgb(126, 74, 186);
/* oklch */ color: oklch(52.4% 0.171 302.2);
Tailwind
colors: {
  custom: {
    50: '#a77fcf',
    500: '#7e4aba',
    950: '#000000',
  },
}
SCSS
$custom: #7e4aba;
$custom-light: #a77fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4aba",
  "rgb": {
    "r": 126,
    "g": 74,
    "b": 186
  },
  "hsl": {
    "h": 267.857,
    "s": 44.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52401,
    "c": 0.1711,
    "h": 302.2
  },
  "luminance": 0.12878
}

Semantic roles & 50–950 ramp

primary
#7E4ABA
secondary
#B2C997
accent
#D55399
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7E4ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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