#7E51E4#7E51E4

#7E51E4 is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.4% C 0.211 H 292.4°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#7E51E4
RGBrgb(126, 81, 228)
HSLhsl(258, 73%, 61%)
HSVhsv(258, 64%, 89%)
CMYKcmyk(44.7%, 64.5%, 0%, 10.6%)
CIE-LABlab(46.87, 51.68, -68.32)
CIE-LCHlch(46.87, 85.66, 307.11°)
OKLaboklab(56.43% 0.0804 -0.1954)
OKLCHoklch(56.43% 0.211 292.4)
XYZxyz(25.5463, 15.9211, 75.1108)
Luminance0.1592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E51E4 #B7E451
analogous
#516EE4 #7E51E4 #C751E4
triadic
#7E51E4 #E47E51 #51E47E
tetradic
#7E51E4 #E4516E #B7E451 #51E4C7
square
#7E51E4 #E4516E #B7E451 #51E4C7
split-complementary
#7E51E4 #E4C751 #6EE451
monochromatic
#4319A2 #5921D7 #7E51E4 #A586EC #CDBBF4

Accessibility & contrast

On white

5.02
#7E51E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#7E51E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E51E4
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E51E4#FFFFFF#000000##FFFFFF
##7E51E41.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E9
Deuteranopia (green-blind)
#006CE1
Tritanopia (blue-blind)
#607493
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7e51e4;
/* rgb */ color: rgb(126, 81, 228);
/* oklch */ color: oklch(56.4% 0.211 292.4);
Tailwind
colors: {
  custom: {
    50: '#ab84ed',
    500: '#7e51e4',
    950: '#000000',
  },
}
SCSS
$custom: #7e51e4;
$custom-light: #ab84ed;
$custom-dark: #000000;
JSON
{
  "hex": "#7e51e4",
  "rgb": {
    "r": 126,
    "g": 81,
    "b": 228
  },
  "hsl": {
    "h": 258.367,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.56431,
    "c": 0.21128,
    "h": 292.4
  },
  "luminance": 0.15922
}

Semantic roles & 50–950 ramp

primary
#7E51E4
secondary
#D3E4AC
accent
#D51099
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E51E4

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

Preview Lab → · Contrast checker → · Palette generator →

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