#7E3AC7#7E3AC7

#7E3AC7 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.2% C 0.207 H 301.4°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#7E3AC7
RGBrgb(126, 58, 199)
HSLhsl(269, 56%, 50%)
HSVhsv(269, 71%, 78%)
CMYKcmyk(36.7%, 70.9%, 0%, 22%)
CIE-LABlab(40.55, 55.73, -61.96)
CIE-LCHlch(40.55, 83.34, 311.97°)
OKLaboklab(51.23% 0.1078 -0.1766)
OKLCHoklch(51.23% 0.207 301.4)
XYZxyz(20.4235, 11.5851, 55.1819)
Luminance0.1158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3AC7 #83C73A
analogous
#3A3DC7 #7E3AC7 #C43AC7
triadic
#7E3AC7 #C77E3A #3AC77E
tetradic
#7E3AC7 #C73A3D #83C73A #3AC7C4
square
#7E3AC7 #C73A3D #83C73A #3AC7C4
split-complementary
#7E3AC7 #C7C43A #3DC73A
monochromatic
#421E69 #602B98 #7E3AC7 #9D6AD5 #BC99E2

Accessibility & contrast

On white

6.33
#7E3AC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#7E3AC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3AC7
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3AC7#FFFFFF#000000##FFFFFF
##7E3AC71.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCB
Deuteranopia (green-blind)
#005FC4
Tritanopia (blue-blind)
#6E5C7D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e3ac7;
/* rgb */ color: rgb(126, 58, 199);
/* oklch */ color: oklch(51.2% 0.207 301.4);
Tailwind
colors: {
  custom: {
    50: '#a976d9',
    500: '#7e3ac7',
    950: '#000000',
  },
}
SCSS
$custom: #7e3ac7;
$custom-light: #a976d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3ac7",
  "rgb": {
    "r": 126,
    "g": 58,
    "b": 199
  },
  "hsl": {
    "h": 268.936,
    "s": 55.731,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51227,
    "c": 0.20688,
    "h": 301.4
  },
  "luminance": 0.11585
}

Semantic roles & 50–950 ramp

primary
#7E3AC7
secondary
#B0CE8F
accent
#DF4997
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7E3AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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