#7E51E6#7E51E6

#7E51E6 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.6% C 0.214 H 292.0°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#7E51E6
RGBrgb(126, 81, 230)
HSLhsl(258, 75%, 61%)
HSVhsv(258, 65%, 90%)
CMYKcmyk(45.2%, 64.8%, 0%, 9.8%)
CIE-LABlab(47.02, 52.22, -69.21)
CIE-LCHlch(47.02, 86.70, 307.03°)
OKLaboklab(56.58% 0.0802 -0.198)
OKLCHoklch(56.58% 0.214 292)
XYZxyz(25.8256, 16.0328, 76.5815)
Luminance0.1603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E51E6 #B9E651
analogous
#516EE6 #7E51E6 #C851E6
triadic
#7E51E6 #E67E51 #51E67E
tetradic
#7E51E6 #E6516E #B9E651 #51E6C8
square
#7E51E6 #E6516E #B9E651 #51E6C8
split-complementary
#7E51E6 #E6C851 #6EE651
monochromatic
#4218A5 #581FDA #7E51E6 #A687EE #CDBCF5

Accessibility & contrast

On white

4.99
#7E51E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#7E51E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E51E6
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E51E6#FFFFFF#000000##FFFFFF
##7E51E61.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EB
Deuteranopia (green-blind)
#006CE3
Tritanopia (blue-blind)
#5F7595
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7e51e6;
/* rgb */ color: rgb(126, 81, 230);
/* oklch */ color: oklch(56.6% 0.214 292.0);
Tailwind
colors: {
  custom: {
    50: '#ab84ef',
    500: '#7e51e6',
    950: '#000000',
  },
}
SCSS
$custom: #7e51e6;
$custom-light: #ab84ef;
$custom-dark: #000000;
JSON
{
  "hex": "#7e51e6",
  "rgb": {
    "r": 126,
    "g": 81,
    "b": 230
  },
  "hsl": {
    "h": 258.121,
    "s": 74.874,
    "l": 60.98
  },
  "oklch": {
    "l": 0.56583,
    "c": 0.21363,
    "h": 292
  },
  "luminance": 0.16034
}

Semantic roles & 50–950 ramp

primary
#7E51E6
secondary
#D5E5AD
accent
#D70E9A
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E51E6

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

Preview Lab → · Contrast checker → · Palette generator →

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