#7E3EC3#7E3EC3

#7E3EC3 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.4% C 0.198 H 301.8°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#7E3EC3
RGBrgb(126, 62, 195)
HSLhsl(269, 53%, 50%)
HSVhsv(269, 68%, 76%)
CMYKcmyk(35.4%, 68.2%, 0%, 23.5%)
CIE-LABlab(40.93, 52.87, -59.01)
CIE-LCHlch(40.93, 79.23, 311.86°)
OKLaboklab(51.41% 0.1043 -0.168)
OKLCHoklch(51.41% 0.198 301.8)
XYZxyz(20.1748, 11.8209, 52.8380)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3EC3 #83C33E
analogous
#3E41C3 #7E3EC3 #C03EC3
triadic
#7E3EC3 #C37E3E #3EC37E
tetradic
#7E3EC3 #C33E41 #83C33E #3EC3C0
square
#7E3EC3 #C33E41 #83C33E #3EC3C0
split-complementary
#7E3EC3 #C3C03E #41C33E
monochromatic
#422067 #602E95 #7E3EC3 #9D6DD2 #BC9BE0

Accessibility & contrast

On white

6.24
#7E3EC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7E3EC3
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3EC3#FFFFFF#000000##FFFFFF
##7E3EC31.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C7
Deuteranopia (green-blind)
#0060C0
Tritanopia (blue-blind)
#705D7C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e3ec3;
/* rgb */ color: rgb(126, 62, 195);
/* oklch */ color: oklch(51.4% 0.198 301.8);
Tailwind
colors: {
  custom: {
    50: '#a978d6',
    500: '#7e3ec3',
    950: '#000000',
  },
}
SCSS
$custom: #7e3ec3;
$custom-light: #a978d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3ec3",
  "rgb": {
    "r": 126,
    "g": 62,
    "b": 195
  },
  "hsl": {
    "h": 268.872,
    "s": 52.569,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51405,
    "c": 0.19771,
    "h": 301.8
  },
  "luminance": 0.11821
}

Semantic roles & 50–950 ramp

primary
#7E3EC3
secondary
#B0CC91
accent
#DC4C97
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7E3EC3

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

Preview Lab → · Contrast checker → · Palette generator →

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