#7E3AC3#7E3AC3

#7E3AC3 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.9% C 0.203 H 302.4°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#7E3AC3
RGBrgb(126, 58, 195)
HSLhsl(270, 54%, 50%)
HSVhsv(270, 70%, 76%)
CMYKcmyk(35.4%, 70.3%, 0%, 23.5%)
CIE-LABlab(40.25, 54.77, -60.12)
CIE-LCHlch(40.25, 81.32, 312.34°)
OKLaboklab(50.92% 0.1084 -0.1712)
OKLCHoklch(50.92% 0.203 302.4)
XYZxyz(19.9652, 11.4018, 52.7681)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3AC3 #7FC33A
analogous
#3A3BC3 #7E3AC3 #C33AC3
triadic
#7E3AC3 #C37E3A #3AC37E
tetradic
#7E3AC3 #C33A3B #7FC33A #3AC3C3
square
#7E3AC3 #C33A3B #7FC33A #3AC3C3
split-complementary
#7E3AC3 #C3C33A #3BC33A
monochromatic
#411E65 #602C94 #7E3AC3 #9D68D2 #BB97E0

Accessibility & contrast

On white

6.40
#7E3AC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#7E3AC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3AC3
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3AC3#FFFFFF#000000##FFFFFF
##7E3AC31.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC7
Deuteranopia (green-blind)
#005EC0
Tritanopia (blue-blind)
#705B7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7e3ac3;
/* rgb */ color: rgb(126, 58, 195);
/* oklch */ color: oklch(50.9% 0.203 302.4);
Tailwind
colors: {
  custom: {
    50: '#a976d6',
    500: '#7e3ac3',
    950: '#000000',
  },
}
SCSS
$custom: #7e3ac3;
$custom-light: #a976d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3ac3",
  "rgb": {
    "r": 126,
    "g": 58,
    "b": 195
  },
  "hsl": {
    "h": 269.781,
    "s": 54.15,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50919,
    "c": 0.20264,
    "h": 302.4
  },
  "luminance": 0.11402
}

Semantic roles & 50–950 ramp

primary
#7E3AC3
secondary
#ADCC8D
accent
#DE4A94
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7E3AC3

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

Preview Lab → · Contrast checker → · Palette generator →

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