#7E3ABA#7E3ABA

#7E3ABA is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.2% C 0.193 H 304.7°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#7E3ABA
RGBrgb(126, 58, 186)
HSLhsl(272, 52%, 48%)
HSVhsv(272, 69%, 73%)
CMYKcmyk(32.3%, 68.8%, 0%, 27.1%)
CIE-LABlab(39.59, 52.62, -55.91)
CIE-LCHlch(39.59, 76.78, 313.26°)
OKLaboklab(50.24% 0.1098 -0.1588)
OKLCHoklch(50.24% 0.193 304.7)
XYZxyz(18.9782, 11.0070, 47.5696)
Luminance0.1101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3ABA #76BA3A
analogous
#3E3ABA #7E3ABA #BA3AB6
triadic
#7E3ABA #BA7E3A #3ABA7E
tetradic
#7E3ABA #BA3E3A #76BA3A #3AB6BA
square
#7E3ABA #BA3E3A #76BA3A #3AB6BA
split-complementary
#7E3ABA #B6BA3A #3ABA3E
monochromatic
#3F1D5D #5E2B8B #7E3ABA #9C63CE #BA92DD

Accessibility & contrast

On white

6.56
#7E3ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#7E3ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3ABA
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3ABA#FFFFFF#000000##FFFFFF
##7E3ABA1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBE
Deuteranopia (green-blind)
#045DB7
Tritanopia (blue-blind)
#735775
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7e3aba;
/* rgb */ color: rgb(126, 58, 186);
/* oklch */ color: oklch(50.2% 0.193 304.7);
Tailwind
colors: {
  custom: {
    50: '#a875d0',
    500: '#7e3aba',
    950: '#000000',
  },
}
SCSS
$custom: #7e3aba;
$custom-light: #a875d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3aba",
  "rgb": {
    "r": 126,
    "g": 58,
    "b": 186
  },
  "hsl": {
    "h": 271.875,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50244,
    "c": 0.19306,
    "h": 304.7
  },
  "luminance": 0.11007
}

Semantic roles & 50–950 ramp

primary
#7E3ABA
secondary
#A6C888
accent
#DC4C8F
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7E3ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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