#7E51EC#7E51EC

#7E51EC is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.0% C 0.221 H 291.1°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#7E51EC
RGBrgb(126, 81, 236)
HSLhsl(257, 80%, 62%)
HSVhsv(257, 66%, 93%)
CMYKcmyk(46.6%, 65.7%, 0%, 7.5%)
CIE-LABlab(47.46, 53.84, -71.87)
CIE-LCHlch(47.46, 89.80, 306.84°)
OKLaboklab(57.04% 0.0795 -0.2058)
OKLCHoklch(57.04% 0.221 291.1)
XYZxyz(26.6827, 16.3756, 81.0955)
Luminance0.1638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E51EC #BFEC51
analogous
#5172EC #7E51EC #CB51EC
triadic
#7E51EC #EC7E51 #51EC7E
tetradic
#7E51EC #EC5172 #BFEC51 #51ECCB
square
#7E51EC #EC5172 #BFEC51 #51ECCB
split-complementary
#7E51EC #ECCB51 #72EC51
monochromatic
#4113AF #551AE6 #7E51EC #A788F2 #D0BFF8

Accessibility & contrast

On white

4.91
#7E51EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#7E51EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E51EC
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E51EC#FFFFFF#000000##FFFFFF
##7E51EC1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F1
Deuteranopia (green-blind)
#006DE9
Tritanopia (blue-blind)
#5B7798
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7e51ec;
/* rgb */ color: rgb(126, 81, 236);
/* oklch */ color: oklch(57.0% 0.221 291.1);
Tailwind
colors: {
  custom: {
    50: '#ac85f3',
    500: '#7e51ec',
    950: '#000000',
  },
}
SCSS
$custom: #7e51ec;
$custom-light: #ac85f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e51ec",
  "rgb": {
    "r": 126,
    "g": 81,
    "b": 236
  },
  "hsl": {
    "h": 257.419,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.57044,
    "c": 0.22062,
    "h": 291.1
  },
  "luminance": 0.16377
}

Semantic roles & 50–950 ramp

primary
#7E51EC
secondary
#D8E9B0
accent
#DD099F
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E51EC

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

Preview Lab → · Contrast checker → · Palette generator →

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