#7E3CC4#7E3CC4

#7E3CC4 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.2% C 0.201 H 301.9°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#7E3CC4
RGBrgb(126, 60, 196)
HSLhsl(269, 54%, 50%)
HSVhsv(269, 69%, 77%)
CMYKcmyk(35.7%, 69.4%, 0%, 23.1%)
CIE-LABlab(40.66, 54.07, -60.03)
CIE-LCHlch(40.66, 80.80, 312.01°)
OKLaboklab(51.23% 0.1062 -0.1709)
OKLCHoklch(51.23% 0.201 301.9)
XYZxyz(20.1815, 11.6528, 53.3998)
Luminance0.1165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3CC4 #82C43C
analogous
#3C3EC4 #7E3CC4 #C23CC4
triadic
#7E3CC4 #C47E3C #3CC47E
tetradic
#7E3CC4 #C43C3E #82C43C #3CC4C2
square
#7E3CC4 #C43C3E #82C43C #3CC4C2
split-complementary
#7E3CC4 #C4C23C #3EC43C
monochromatic
#421F67 #602D96 #7E3CC4 #9D6BD2 #BC9AE0

Accessibility & contrast

On white

6.31
#7E3CC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#7E3CC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3CC4
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3CC4#FFFFFF#000000##FFFFFF
##7E3CC41.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC8
Deuteranopia (green-blind)
#005FC1
Tritanopia (blue-blind)
#6F5C7C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e3cc4;
/* rgb */ color: rgb(126, 60, 196);
/* oklch */ color: oklch(51.2% 0.201 301.9);
Tailwind
colors: {
  custom: {
    50: '#a977d7',
    500: '#7e3cc4',
    950: '#000000',
  },
}
SCSS
$custom: #7e3cc4;
$custom-light: #a977d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3cc4",
  "rgb": {
    "r": 126,
    "g": 60,
    "b": 196
  },
  "hsl": {
    "h": 269.118,
    "s": 53.543,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51234,
    "c": 0.20127,
    "h": 301.9
  },
  "luminance": 0.11653
}

Semantic roles & 50–950 ramp

primary
#7E3CC4
secondary
#AFCC90
accent
#DD4B96
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7E3CC4

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

Preview Lab → · Contrast checker → · Palette generator →

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