#7E3ACA#7E3ACA

#7E3ACA is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.5% C 0.210 H 300.7°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#7E3ACA
RGBrgb(126, 58, 202)
HSLhsl(268, 58%, 51%)
HSVhsv(268, 71%, 79%)
CMYKcmyk(37.6%, 71.3%, 0%, 20.8%)
CIE-LABlab(40.78, 56.46, -63.33)
CIE-LCHlch(40.78, 84.84, 311.72°)
OKLaboklab(51.46% 0.1072 -0.1806)
OKLCHoklch(51.46% 0.21 300.7)
XYZxyz(20.7753, 11.7258, 57.0344)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3ACA #86CA3A
analogous
#3A3ECA #7E3ACA #C63ACA
triadic
#7E3ACA #CA7E3A #3ACA7E
tetradic
#7E3ACA #CA3A3E #86CA3A #3ACAC6
square
#7E3ACA #CA3A3E #86CA3A #3ACAC6
split-complementary
#7E3ACA #CAC63A #3ECA3A
monochromatic
#431D6C #602A9D #7E3ACA #9E6AD7 #BD9AE4

Accessibility & contrast

On white

6.28
#7E3ACA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7E3ACA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3ACA
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3ACA#FFFFFF#000000##FFFFFF
##7E3ACA1.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CE
Deuteranopia (green-blind)
#005FC7
Tritanopia (blue-blind)
#6D5D7E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e3aca;
/* rgb */ color: rgb(126, 58, 202);
/* oklch */ color: oklch(51.5% 0.210 300.7);
Tailwind
colors: {
  custom: {
    50: '#a976db',
    500: '#7e3aca',
    950: '#000000',
  },
}
SCSS
$custom: #7e3aca;
$custom-light: #a976db;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3aca",
  "rgb": {
    "r": 126,
    "g": 58,
    "b": 202
  },
  "hsl": {
    "h": 268.333,
    "s": 57.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.5146,
    "c": 0.21006,
    "h": 300.7
  },
  "luminance": 0.11726
}

Semantic roles & 50–950 ramp

primary
#7E3ACA
secondary
#B2D090
accent
#E14798
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7E3ACA

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

Preview Lab → · Contrast checker → · Palette generator →

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