#7E51EB#7E51EB

#7E51EB is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 57.0% C 0.219 H 291.3°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#7E51EB
RGBrgb(126, 81, 235)
HSLhsl(258, 79%, 62%)
HSVhsv(258, 66%, 92%)
CMYKcmyk(46.4%, 65.5%, 0%, 7.8%)
CIE-LABlab(47.39, 53.57, -71.43)
CIE-LCHlch(47.39, 89.29, 306.87°)
OKLaboklab(56.97% 0.0796 -0.2045)
OKLCHoklch(56.97% 0.219 291.3)
XYZxyz(26.5378, 16.3177, 80.3325)
Luminance0.1632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E51EB #BEEB51
analogous
#5171EB #7E51EB #CB51EB
triadic
#7E51EB #EB7E51 #51EB7E
tetradic
#7E51EB #EB5171 #BEEB51 #51EBCB
square
#7E51EB #EB5171 #BEEB51 #51EBCB
split-complementary
#7E51EB #EBCB51 #71EB51
monochromatic
#4114AE #551AE5 #7E51EB #A788F1 #CFBFF8

Accessibility & contrast

On white

4.93
#7E51EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#7E51EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E51EB
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E51EB#FFFFFF#000000##FFFFFF
##7E51EB1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F0
Deuteranopia (green-blind)
#006DE8
Tritanopia (blue-blind)
#5C7797
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7e51eb;
/* rgb */ color: rgb(126, 81, 235);
/* oklch */ color: oklch(57.0% 0.219 291.3);
Tailwind
colors: {
  custom: {
    50: '#ac85f2',
    500: '#7e51eb',
    950: '#000000',
  },
}
SCSS
$custom: #7e51eb;
$custom-light: #ac85f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e51eb",
  "rgb": {
    "r": 126,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 257.532,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.56967,
    "c": 0.21947,
    "h": 291.3
  },
  "luminance": 0.16319
}

Semantic roles & 50–950 ramp

primary
#7E51EB
secondary
#D8E8B0
accent
#DC0A9E
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E51EB

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

Preview Lab → · Contrast checker → · Palette generator →

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