#7E3AC2#7E3AC2

#7E3AC2 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.8% C 0.202 H 302.6°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#7E3AC2
RGBrgb(126, 58, 194)
HSLhsl(270, 54%, 49%)
HSVhsv(270, 70%, 76%)
CMYKcmyk(35.1%, 70.1%, 0%, 23.9%)
CIE-LABlab(40.17, 54.53, -59.65)
CIE-LCHlch(40.17, 80.82, 312.43°)
OKLaboklab(50.84% 0.1086 -0.1698)
OKLCHoklch(50.84% 0.202 302.6)
XYZxyz(19.8525, 11.3567, 52.1747)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3AC2 #7EC23A
analogous
#3A3AC2 #7E3AC2 #C23AC2
triadic
#7E3AC2 #C27E3A #3AC27E
tetradic
#7E3AC2 #C23A3A #7EC23A #3AC2C2
square
#7E3AC2 #C23A3A #7EC23A #3AC2C2
split-complementary
#7E3AC2 #C2C23A #3AC23A
monochromatic
#411E64 #5F2C93 #7E3AC2 #9D67D2 #BB97E0

Accessibility & contrast

On white

6.42
#7E3AC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#7E3AC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3AC2
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3AC2#FFFFFF#000000##FFFFFF
##7E3AC21.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC6
Deuteranopia (green-blind)
#005EBF
Tritanopia (blue-blind)
#705A7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7e3ac2;
/* rgb */ color: rgb(126, 58, 194);
/* oklch */ color: oklch(50.8% 0.202 302.6);
Tailwind
colors: {
  custom: {
    50: '#a976d5',
    500: '#7e3ac2',
    950: '#000000',
  },
}
SCSS
$custom: #7e3ac2;
$custom-light: #a976d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3ac2",
  "rgb": {
    "r": 126,
    "g": 58,
    "b": 194
  },
  "hsl": {
    "h": 270,
    "s": 53.968,
    "l": 49.412
  },
  "oklch": {
    "l": 0.50843,
    "c": 0.20158,
    "h": 302.6
  },
  "luminance": 0.11357
}

Semantic roles & 50–950 ramp

primary
#7E3AC2
secondary
#ACCB8D
accent
#DD4A94
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7E3AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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