#7E3AC4#7E3AC4

#7E3AC4 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.0% C 0.204 H 302.1°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#7E3AC4
RGBrgb(126, 58, 196)
HSLhsl(270, 54%, 50%)
HSVhsv(270, 70%, 77%)
CMYKcmyk(35.7%, 70.4%, 0%, 23.1%)
CIE-LABlab(40.32, 55.01, -60.58)
CIE-LCHlch(40.32, 81.83, 312.24°)
OKLaboklab(51% 0.1083 -0.1725)
OKLCHoklch(51% 0.204 302.1)
XYZxyz(20.0787, 11.4472, 53.3656)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3AC4 #80C43A
analogous
#3A3BC4 #7E3AC4 #C33AC4
triadic
#7E3AC4 #C47E3A #3AC47E
tetradic
#7E3AC4 #C43A3B #80C43A #3AC4C3
square
#7E3AC4 #C43A3B #80C43A #3AC4C3
split-complementary
#7E3AC4 #C4C33A #3BC43A
monochromatic
#411E66 #602C95 #7E3AC4 #9D69D3 #BC98E0

Accessibility & contrast

On white

6.38
#7E3AC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#7E3AC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3AC4
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3AC4#FFFFFF#000000##FFFFFF
##7E3AC41.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC8
Deuteranopia (green-blind)
#005EC1
Tritanopia (blue-blind)
#6F5B7B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7e3ac4;
/* rgb */ color: rgb(126, 58, 196);
/* oklch */ color: oklch(51.0% 0.204 302.1);
Tailwind
colors: {
  custom: {
    50: '#a976d7',
    500: '#7e3ac4',
    950: '#000000',
  },
}
SCSS
$custom: #7e3ac4;
$custom-light: #a976d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3ac4",
  "rgb": {
    "r": 126,
    "g": 58,
    "b": 196
  },
  "hsl": {
    "h": 269.565,
    "s": 54.331,
    "l": 49.804
  },
  "oklch": {
    "l": 0.50996,
    "c": 0.2037,
    "h": 302.1
  },
  "luminance": 0.11447
}

Semantic roles & 50–950 ramp

primary
#7E3AC4
secondary
#ADCC8E
accent
#DE4A95
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7E3AC4

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

Preview Lab → · Contrast checker → · Palette generator →

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