#7E3EC2#7E3EC2

#7E3EC2 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.3% C 0.197 H 302.1°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#7E3EC2
RGBrgb(126, 62, 194)
HSLhsl(269, 52%, 50%)
HSVhsv(269, 68%, 76%)
CMYKcmyk(35.1%, 68%, 0%, 23.9%)
CIE-LABlab(40.86, 52.63, -58.54)
CIE-LCHlch(40.86, 78.72, 311.95°)
OKLaboklab(51.33% 0.1044 -0.1666)
OKLCHoklch(51.33% 0.197 302.1)
XYZxyz(20.0621, 11.7759, 52.2445)
Luminance0.1178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3EC2 #82C23E
analogous
#3E40C2 #7E3EC2 #C03EC2
triadic
#7E3EC2 #C27E3E #3EC27E
tetradic
#7E3EC2 #C23E40 #82C23E #3EC2C0
square
#7E3EC2 #C23E40 #82C23E #3EC2C0
split-complementary
#7E3EC2 #C2C03E #40C23E
monochromatic
#422066 #602F94 #7E3EC2 #9D6DD1 #BC9BDF

Accessibility & contrast

On white

6.26
#7E3EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#7E3EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3EC2
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3EC2#FFFFFF#000000##FFFFFF
##7E3EC21.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#0060BF
Tritanopia (blue-blind)
#705C7B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e3ec2;
/* rgb */ color: rgb(126, 62, 194);
/* oklch */ color: oklch(51.3% 0.197 302.1);
Tailwind
colors: {
  custom: {
    50: '#a978d5',
    500: '#7e3ec2',
    950: '#000000',
  },
}
SCSS
$custom: #7e3ec2;
$custom-light: #a978d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3ec2",
  "rgb": {
    "r": 126,
    "g": 62,
    "b": 194
  },
  "hsl": {
    "h": 269.091,
    "s": 51.969,
    "l": 50.196
  },
  "oklch": {
    "l": 0.5133,
    "c": 0.19662,
    "h": 302.1
  },
  "luminance": 0.11776
}

Semantic roles & 50–950 ramp

primary
#7E3EC2
secondary
#AFCB90
accent
#DB4C96
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7E3EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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