#7E3EC6#7E3EC6

#7E3EC6 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.6% C 0.201 H 301.1°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#7E3EC6
RGBrgb(126, 62, 198)
HSLhsl(268, 54%, 51%)
HSVhsv(268, 69%, 78%)
CMYKcmyk(36.4%, 68.7%, 0%, 22.4%)
CIE-LABlab(41.15, 53.60, -60.40)
CIE-LCHlch(41.15, 80.76, 311.59°)
OKLaboklab(51.63% 0.1039 -0.172)
OKLCHoklch(51.63% 0.201 301.1)
XYZxyz(20.5174, 11.9580, 54.6423)
Luminance0.1196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3EC6 #86C63E
analogous
#3E42C6 #7E3EC6 #C23EC6
triadic
#7E3EC6 #C67E3E #3EC67E
tetradic
#7E3EC6 #C63E42 #86C63E #3EC6C2
square
#7E3EC6 #C63E42 #86C63E #3EC6C2
split-complementary
#7E3EC6 #C6C23E #42C63E
monochromatic
#431F6A #602D99 #7E3EC6 #9E6DD4 #BD9CE2

Accessibility & contrast

On white

6.19
#7E3EC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#7E3EC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3EC6
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3EC6#FFFFFF#000000##FFFFFF
##7E3EC61.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e3ec6;
/* rgb */ color: rgb(126, 62, 198);
/* oklch */ color: oklch(51.6% 0.201 301.1);
Tailwind
colors: {
  custom: {
    50: '#a978d8',
    500: '#7e3ec6',
    950: '#000000',
  },
}
SCSS
$custom: #7e3ec6;
$custom-light: #a978d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3ec6",
  "rgb": {
    "r": 126,
    "g": 62,
    "b": 198
  },
  "hsl": {
    "h": 268.235,
    "s": 54.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51631,
    "c": 0.20098,
    "h": 301.1
  },
  "luminance": 0.11958
}

Semantic roles & 50–950 ramp

primary
#7E3EC6
secondary
#B2CE92
accent
#DE4A98
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7E3EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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