#7E51E2#7E51E2

#7E51E2 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.3% C 0.209 H 292.7°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#7E51E2
RGBrgb(126, 81, 226)
HSLhsl(259, 71%, 60%)
HSVhsv(259, 64%, 89%)
CMYKcmyk(44.2%, 64.2%, 0%, 11.4%)
CIE-LABlab(46.73, 51.14, -67.42)
CIE-LCHlch(46.73, 84.62, 307.18°)
OKLaboklab(56.28% 0.0806 -0.1927)
OKLCHoklch(56.28% 0.209 292.7)
XYZxyz(25.2703, 15.8107, 73.6571)
Luminance0.1581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E51E2 #B5E251
analogous
#516CE2 #7E51E2 #C751E2
triadic
#7E51E2 #E27E51 #51E27E
tetradic
#7E51E2 #E2516C #B5E251 #51E2C7
square
#7E51E2 #E2516C #B5E251 #51E2C7
split-complementary
#7E51E2 #E2C751 #6CE251
monochromatic
#431A9E #5A23D3 #7E51E2 #A585EB #CCBAF3

Accessibility & contrast

On white

5.05
#7E51E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#7E51E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E51E2
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E51E2#FFFFFF#000000##FFFFFF
##7E51E21.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E7
Deuteranopia (green-blind)
#006CDF
Tritanopia (blue-blind)
#617392
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7e51e2;
/* rgb */ color: rgb(126, 81, 226);
/* oklch */ color: oklch(56.3% 0.209 292.7);
Tailwind
colors: {
  custom: {
    50: '#ab84ec',
    500: '#7e51e2',
    950: '#000000',
  },
}
SCSS
$custom: #7e51e2;
$custom-light: #ab84ec;
$custom-dark: #000000;
JSON
{
  "hex": "#7e51e2",
  "rgb": {
    "r": 126,
    "g": 81,
    "b": 226
  },
  "hsl": {
    "h": 258.621,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.5628,
    "c": 0.20892,
    "h": 292.7
  },
  "luminance": 0.15811
}

Semantic roles & 50–950 ramp

primary
#7E51E2
secondary
#D2E3AC
accent
#D31297
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E51E2

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

Preview Lab → · Contrast checker → · Palette generator →

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