#7E3EC9#7E3EC9

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

Color values

HEX#7E3EC9
RGBrgb(126, 62, 201)
HSLhsl(268, 56%, 52%)
HSVhsv(268, 69%, 79%)
CMYKcmyk(37.3%, 69.2%, 0%, 21.2%)
CIE-LABlab(41.37, 54.34, -61.78)
CIE-LCHlch(41.37, 82.28, 311.33°)
OKLaboklab(51.86% 0.1034 -0.1761)
OKLCHoklch(51.86% 0.204 300.4)
XYZxyz(20.8668, 12.0977, 56.4828)
Luminance0.1210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3EC9 #89C93E
analogous
#3E44C9 #7E3EC9 #C43EC9
triadic
#7E3EC9 #C97E3E #3EC97E
tetradic
#7E3EC9 #C93E44 #89C93E #3EC9C4
square
#7E3EC9 #C93E44 #89C93E #3EC9C4
split-complementary
#7E3EC9 #C9C43E #44C93E
monochromatic
#431F6E #602C9E #7E3EC9 #9E6ED6 #BE9EE4

Accessibility & contrast

On white

6.14
#7E3EC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#7E3EC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3EC9
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3EC9#FFFFFF#000000##FFFFFF
##7E3EC91.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e3ec9;
/* rgb */ color: rgb(126, 62, 201);
/* oklch */ color: oklch(51.9% 0.204 300.4);
Tailwind
colors: {
  custom: {
    50: '#a978da',
    500: '#7e3ec9',
    950: '#000000',
  },
}
SCSS
$custom: #7e3ec9;
$custom-light: #a978da;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3ec9",
  "rgb": {
    "r": 126,
    "g": 62,
    "b": 201
  },
  "hsl": {
    "h": 267.626,
    "s": 56.275,
    "l": 51.569
  },
  "oklch": {
    "l": 0.51859,
    "c": 0.20424,
    "h": 300.4
  },
  "luminance": 0.12098
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E3EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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