#7E3CC6#7E3CC6

#7E3CC6 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.4% C 0.203 H 301.4°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#7E3CC6
RGBrgb(126, 60, 198)
HSLhsl(269, 55%, 51%)
HSVhsv(269, 70%, 78%)
CMYKcmyk(36.4%, 69.7%, 0%, 22.4%)
CIE-LABlab(40.81, 54.56, -60.96)
CIE-LCHlch(40.81, 81.81, 311.83°)
OKLaboklab(51.39% 0.1059 -0.1737)
OKLCHoklch(51.39% 0.203 301.4)
XYZxyz(20.4106, 11.7444, 54.6067)
Luminance0.1174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3CC6 #84C63C
analogous
#3C3FC6 #7E3CC6 #C33CC6
triadic
#7E3CC6 #C67E3C #3CC67E
tetradic
#7E3CC6 #C63C3F #84C63C #3CC6C3
square
#7E3CC6 #C63C3F #84C63C #3CC6C3
split-complementary
#7E3CC6 #C6C33C #3FC63C
monochromatic
#421F69 #602D98 #7E3CC6 #9D6BD4 #BD9BE2

Accessibility & contrast

On white

6.27
#7E3CC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7E3CC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3CC6
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3CC6#FFFFFF#000000##FFFFFF
##7E3CC61.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCA
Deuteranopia (green-blind)
#005FC3
Tritanopia (blue-blind)
#6F5D7D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e3cc6;
/* rgb */ color: rgb(126, 60, 198);
/* oklch */ color: oklch(51.4% 0.203 301.4);
Tailwind
colors: {
  custom: {
    50: '#a977d8',
    500: '#7e3cc6',
    950: '#000000',
  },
}
SCSS
$custom: #7e3cc6;
$custom-light: #a977d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3cc6",
  "rgb": {
    "r": 126,
    "g": 60,
    "b": 198
  },
  "hsl": {
    "h": 268.696,
    "s": 54.762,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51387,
    "c": 0.20343,
    "h": 301.4
  },
  "luminance": 0.11745
}

Semantic roles & 50–950 ramp

primary
#7E3CC6
secondary
#B0CE90
accent
#DE4A97
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7E3CC6

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

Preview Lab → · Contrast checker → · Palette generator →

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