#7E3AAA#7E3AAA

#7E3AAA is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.1% C 0.176 H 309.3°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#7E3AAA
RGBrgb(126, 58, 170)
HSLhsl(276, 49%, 45%)
HSVhsv(276, 66%, 67%)
CMYKcmyk(25.9%, 65.9%, 0%, 33.3%)
CIE-LABlab(38.49, 48.89, -48.22)
CIE-LCHlch(38.49, 68.67, 315.39°)
OKLaboklab(49.1% 0.1114 -0.1362)
OKLCHoklch(49.1% 0.176 309.3)
XYZxyz(17.3715, 10.3643, 39.1078)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3AAA #66AA3A
analogous
#463AAA #7E3AAA #AA3A9E
triadic
#7E3AAA #AA7E3A #3AAA7E
tetradic
#7E3AAA #AA463A #66AA3A #3A9EAA
square
#7E3AAA #AA463A #66AA3A #3A9EAA
split-complementary
#7E3AAA #9EAA3A #3AAA46
monochromatic
#3A1B4F #5C2A7C #7E3AAA #9C5AC7 #B888D6

Accessibility & contrast

On white

6.83
#7E3AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#7E3AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3AAA
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3AAA#FFFFFF#000000##FFFFFF
##7E3AAA1.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AD
Deuteranopia (green-blind)
#285CA7
Tritanopia (blue-blind)
#78516D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7e3aaa;
/* rgb */ color: rgb(126, 58, 170);
/* oklch */ color: oklch(49.1% 0.176 309.3);
Tailwind
colors: {
  custom: {
    50: '#a775c4',
    500: '#7e3aaa',
    950: '#000000',
  },
}
SCSS
$custom: #7e3aaa;
$custom-light: #a775c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3aaa",
  "rgb": {
    "r": 126,
    "g": 58,
    "b": 170
  },
  "hsl": {
    "h": 276.429,
    "s": 49.123,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49102,
    "c": 0.17598,
    "h": 309.3
  },
  "luminance": 0.10364
}

Semantic roles & 50–950 ramp

primary
#7E3AAA
secondary
#99C17F
accent
#D94F85
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7E3AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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