#7E3AC8#7E3AC8

#7E3AC8 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.3% C 0.208 H 301.2°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#7E3AC8
RGBrgb(126, 58, 200)
HSLhsl(269, 56%, 51%)
HSVhsv(269, 71%, 78%)
CMYKcmyk(37%, 71%, 0%, 21.6%)
CIE-LABlab(40.62, 55.98, -62.42)
CIE-LCHlch(40.62, 83.84, 311.89°)
OKLaboklab(51.3% 0.1076 -0.1779)
OKLCHoklch(51.3% 0.208 301.2)
XYZxyz(20.5400, 11.6317, 55.7954)
Luminance0.1163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3AC8 #84C83A
analogous
#3A3DC8 #7E3AC8 #C53AC8
triadic
#7E3AC8 #C87E3A #3AC87E
tetradic
#7E3AC8 #C83A3D #84C83A #3AC8C5
square
#7E3AC8 #C83A3D #84C83A #3AC8C5
split-complementary
#7E3AC8 #C8C53A #3DC83A
monochromatic
#421E6A #602B9A #7E3AC8 #9D6AD5 #BD9AE3

Accessibility & contrast

On white

6.31
#7E3AC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#7E3AC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3AC8
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3AC8#FFFFFF#000000##FFFFFF
##7E3AC81.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCC
Deuteranopia (green-blind)
#005FC5
Tritanopia (blue-blind)
#6E5D7D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e3ac8;
/* rgb */ color: rgb(126, 58, 200);
/* oklch */ color: oklch(51.3% 0.208 301.2);
Tailwind
colors: {
  custom: {
    50: '#a976da',
    500: '#7e3ac8',
    950: '#000000',
  },
}
SCSS
$custom: #7e3ac8;
$custom-light: #a976da;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3ac8",
  "rgb": {
    "r": 126,
    "g": 58,
    "b": 200
  },
  "hsl": {
    "h": 268.732,
    "s": 56.349,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51304,
    "c": 0.20794,
    "h": 301.2
  },
  "luminance": 0.11632
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E3AC8

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

Preview Lab → · Contrast checker → · Palette generator →

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