#7E3ACD#7E3ACD

#7E3ACD is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.7% C 0.213 H 300.0°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#7E3ACD
RGBrgb(126, 58, 205)
HSLhsl(268, 60%, 52%)
HSVhsv(268, 72%, 80%)
CMYKcmyk(38.5%, 71.7%, 0%, 19.6%)
CIE-LABlab(41.01, 57.19, -64.69)
CIE-LCHlch(41.01, 86.35, 311.48°)
OKLaboklab(51.7% 0.1067 -0.1846)
OKLCHoklch(51.7% 0.213 300)
XYZxyz(21.1339, 11.8693, 58.9233)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3ACD #89CD3A
analogous
#3A40CD #7E3ACD #C73ACD
triadic
#7E3ACD #CD7E3A #3ACD7E
tetradic
#7E3ACD #CD3A40 #89CD3A #3ACDC7
square
#7E3ACD #CD3A40 #89CD3A #3ACDC7
split-complementary
#7E3ACD #CDC73A #40CD3A
monochromatic
#431C70 #6029A1 #7E3ACD #9E6BD9 #BE9CE6

Accessibility & contrast

On white

6.22
#7E3ACD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#7E3ACD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3ACD
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3ACD#FFFFFF#000000##FFFFFF
##7E3ACD1.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D1
Deuteranopia (green-blind)
#0060CA
Tritanopia (blue-blind)
#6C5E80
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7e3acd;
/* rgb */ color: rgb(126, 58, 205);
/* oklch */ color: oklch(51.7% 0.213 300.0);
Tailwind
colors: {
  custom: {
    50: '#aa76dd',
    500: '#7e3acd',
    950: '#000000',
  },
}
SCSS
$custom: #7e3acd;
$custom-light: #aa76dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3acd",
  "rgb": {
    "r": 126,
    "g": 58,
    "b": 205
  },
  "hsl": {
    "h": 267.755,
    "s": 59.514,
    "l": 51.569
  },
  "oklch": {
    "l": 0.51695,
    "c": 0.21323,
    "h": 300
  },
  "luminance": 0.1187
}

Semantic roles & 50–950 ramp

primary
#7E3ACD
secondary
#B4D291
accent
#E3459A
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7E3ACD

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

Preview Lab → · Contrast checker → · Palette generator →

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