#7E51E7#7E51E7

#7E51E7 is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.7% C 0.215 H 291.9°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7E51E7
RGBrgb(126, 81, 231)
HSLhsl(258, 76%, 61%)
HSVhsv(258, 65%, 91%)
CMYKcmyk(45.5%, 64.9%, 0%, 9.4%)
CIE-LABlab(47.09, 52.49, -69.66)
CIE-LCHlch(47.09, 87.22, 307.00°)
OKLaboklab(56.66% 0.0801 -0.1993)
OKLCHoklch(56.66% 0.215 291.9)
XYZxyz(25.9664, 16.0891, 77.3232)
Luminance0.1609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E51E7 #BAE751
analogous
#516FE7 #7E51E7 #C951E7
triadic
#7E51E7 #E77E51 #51E77E
tetradic
#7E51E7 #E7516F #BAE751 #51E7C9
square
#7E51E7 #E7516F #BAE751 #51E7C9
split-complementary
#7E51E7 #E7C951 #6FE751
monochromatic
#4217A7 #571EDC #7E51E7 #A687EE #CEBDF6

Accessibility & contrast

On white

4.98
#7E51E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7E51E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E51E7
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E51E7#FFFFFF#000000##FFFFFF
##7E51E71.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EC
Deuteranopia (green-blind)
#006DE4
Tritanopia (blue-blind)
#5E7595
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7e51e7;
/* rgb */ color: rgb(126, 81, 231);
/* oklch */ color: oklch(56.7% 0.215 291.9);
Tailwind
colors: {
  custom: {
    50: '#ab84f0',
    500: '#7e51e7',
    950: '#000000',
  },
}
SCSS
$custom: #7e51e7;
$custom-light: #ab84f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e51e7",
  "rgb": {
    "r": 126,
    "g": 81,
    "b": 231
  },
  "hsl": {
    "h": 258,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.56659,
    "c": 0.21479,
    "h": 291.9
  },
  "luminance": 0.1609
}

Semantic roles & 50–950 ramp

primary
#7E51E7
secondary
#D5E6AE
accent
#D80E9B
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E51E7

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

Preview Lab → · Contrast checker → · Palette generator →

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