#7E3EC0#7E3EC0

#7E3EC0 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.2% C 0.194 H 302.6°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#7E3EC0
RGBrgb(126, 62, 192)
HSLhsl(270, 51%, 50%)
HSVhsv(270, 68%, 75%)
CMYKcmyk(34.4%, 67.7%, 0%, 24.7%)
CIE-LABlab(40.71, 52.14, -57.61)
CIE-LCHlch(40.71, 77.70, 312.15°)
OKLaboklab(51.18% 0.1047 -0.1638)
OKLCHoklch(51.18% 0.194 302.6)
XYZxyz(19.8390, 11.6866, 51.0695)
Luminance0.1169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3EC0 #80C03E
analogous
#3E3FC0 #7E3EC0 #BF3EC0
triadic
#7E3EC0 #C07E3E #3EC07E
tetradic
#7E3EC0 #C03E3F #80C03E #3EC0BF
square
#7E3EC0 #C03E3F #80C03E #3EC0BF
split-complementary
#7E3EC0 #C0BF3E #3FC03E
monochromatic
#412063 #602F92 #7E3EC0 #9D6CCF #BC9ADE

Accessibility & contrast

On white

6.29
#7E3EC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7E3EC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3EC0
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3EC0#FFFFFF#000000##FFFFFF
##7E3EC01.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC4
Deuteranopia (green-blind)
#0060BD
Tritanopia (blue-blind)
#715C7A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e3ec0;
/* rgb */ color: rgb(126, 62, 192);
/* oklch */ color: oklch(51.2% 0.194 302.6);
Tailwind
colors: {
  custom: {
    50: '#a878d4',
    500: '#7e3ec0',
    950: '#000000',
  },
}
SCSS
$custom: #7e3ec0;
$custom-light: #a878d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3ec0",
  "rgb": {
    "r": 126,
    "g": 62,
    "b": 192
  },
  "hsl": {
    "h": 269.538,
    "s": 51.181,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51182,
    "c": 0.19444,
    "h": 302.6
  },
  "luminance": 0.11687
}

Semantic roles & 50–950 ramp

primary
#7E3EC0
secondary
#ADCA8F
accent
#DB4D95
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7E3EC0

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

Preview Lab → · Contrast checker → · Palette generator →

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