#7E3EC5#7E3EC5

#7E3EC5 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.6% C 0.200 H 301.4°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#7E3EC5
RGBrgb(126, 62, 197)
HSLhsl(268, 54%, 51%)
HSVhsv(268, 69%, 77%)
CMYKcmyk(36%, 68.5%, 0%, 22.7%)
CIE-LABlab(41.08, 53.36, -59.94)
CIE-LCHlch(41.08, 80.25, 311.68°)
OKLaboklab(51.55% 0.104 -0.1707)
OKLCHoklch(51.55% 0.2 301.4)
XYZxyz(20.4024, 11.9120, 54.0369)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3EC5 #85C53E
analogous
#3E41C5 #7E3EC5 #C13EC5
triadic
#7E3EC5 #C57E3E #3EC57E
tetradic
#7E3EC5 #C53E41 #85C53E #3EC5C1
square
#7E3EC5 #C53E41 #85C53E #3EC5C1
split-complementary
#7E3EC5 #C5C13E #41C53E
monochromatic
#422069 #602E98 #7E3EC5 #9D6DD3 #BD9CE1

Accessibility & contrast

On white

6.21
#7E3EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7E3EC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3EC5
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3EC5#FFFFFF#000000##FFFFFF
##7E3EC51.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C9
Deuteranopia (green-blind)
#0060C2
Tritanopia (blue-blind)
#6F5E7D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7e3ec5;
/* rgb */ color: rgb(126, 62, 197);
/* oklch */ color: oklch(51.6% 0.200 301.4);
Tailwind
colors: {
  custom: {
    50: '#a978d7',
    500: '#7e3ec5',
    950: '#000000',
  },
}
SCSS
$custom: #7e3ec5;
$custom-light: #a978d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3ec5",
  "rgb": {
    "r": 126,
    "g": 62,
    "b": 197
  },
  "hsl": {
    "h": 268.444,
    "s": 53.785,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51555,
    "c": 0.19989,
    "h": 301.4
  },
  "luminance": 0.11912
}

Semantic roles & 50–950 ramp

primary
#7E3EC5
secondary
#B1CD91
accent
#DD4B98
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7E3EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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