#7E3ECA#7E3ECA

#7E3ECA is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.9% C 0.205 H 300.2°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#7E3ECA
RGBrgb(126, 62, 202)
HSLhsl(267, 57%, 52%)
HSVhsv(267, 69%, 79%)
CMYKcmyk(37.6%, 69.3%, 0%, 20.8%)
CIE-LABlab(41.45, 54.59, -62.24)
CIE-LCHlch(41.45, 82.79, 311.25°)
OKLaboklab(51.93% 0.1033 -0.1775)
OKLCHoklch(51.93% 0.205 300.2)
XYZxyz(20.9848, 12.1450, 57.1043)
Luminance0.1215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3ECA #8ACA3E
analogous
#3E44CA #7E3ECA #C43ECA
triadic
#7E3ECA #CA7E3E #3ECA7E
tetradic
#7E3ECA #CA3E44 #8ACA3E #3ECAC4
square
#7E3ECA #CA3E44 #8ACA3E #3ECAC4
split-complementary
#7E3ECA #CAC43E #44CA3E
monochromatic
#431F6F #602C9F #7E3ECA #9E6ED7 #BE9EE4

Accessibility & contrast

On white

6.12
#7E3ECA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7E3ECA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3ECA
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3ECA#FFFFFF#000000##FFFFFF
##7E3ECA1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CE
Deuteranopia (green-blind)
#0061C7
Tritanopia (blue-blind)
#6D5F7F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7e3eca;
/* rgb */ color: rgb(126, 62, 202);
/* oklch */ color: oklch(51.9% 0.205 300.2);
Tailwind
colors: {
  custom: {
    50: '#a978db',
    500: '#7e3eca',
    950: '#000000',
  },
}
SCSS
$custom: #7e3eca;
$custom-light: #a978db;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3eca",
  "rgb": {
    "r": 126,
    "g": 62,
    "b": 202
  },
  "hsl": {
    "h": 267.429,
    "s": 56.911,
    "l": 51.765
  },
  "oklch": {
    "l": 0.51935,
    "c": 0.20532,
    "h": 300.2
  },
  "luminance": 0.12145
}

Semantic roles & 50–950 ramp

primary
#7E3ECA
secondary
#B5D193
accent
#E0489A
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7E3ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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