#7E51DE#7E51DE

#7E51DE is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.0% C 0.204 H 293.4°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#7E51DE
RGBrgb(126, 81, 222)
HSLhsl(259, 68%, 59%)
HSVhsv(259, 64%, 87%)
CMYKcmyk(43.2%, 63.5%, 0%, 12.9%)
CIE-LABlab(46.44, 50.07, -65.62)
CIE-LCHlch(46.44, 82.54, 307.34°)
OKLaboklab(55.98% 0.081 -0.1874)
OKLCHoklch(55.98% 0.204 293.4)
XYZxyz(24.7278, 15.5937, 70.8001)
Luminance0.1559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E51DE #B1DE51
analogous
#516BDE #7E51DE #C551DE
triadic
#7E51DE #DE7E51 #51DE7E
tetradic
#7E51DE #DE516B #B1DE51 #51DEC5
square
#7E51DE #DE516B #B1DE51 #51DEC5
split-complementary
#7E51DE #DEC551 #6BDE51
monochromatic
#441D98 #5B27CB #7E51DE #A484E8 #CAB8F2

Accessibility & contrast

On white

5.10
#7E51DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#7E51DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E51DE
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E51DE#FFFFFF#000000##FFFFFF
##7E51DE1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E2
Deuteranopia (green-blind)
#006BDB
Tritanopia (blue-blind)
#637290
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7e51de;
/* rgb */ color: rgb(126, 81, 222);
/* oklch */ color: oklch(56.0% 0.204 293.4);
Tailwind
colors: {
  custom: {
    50: '#aa84e9',
    500: '#7e51de',
    950: '#000000',
  },
}
SCSS
$custom: #7e51de;
$custom-light: #aa84e9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e51de",
  "rgb": {
    "r": 126,
    "g": 81,
    "b": 222
  },
  "hsl": {
    "h": 259.149,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.55981,
    "c": 0.2042,
    "h": 293.4
  },
  "luminance": 0.15594
}

Semantic roles & 50–950 ramp

primary
#7E51DE
secondary
#CFE1AA
accent
#EB3DB3
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E51DE

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

Preview Lab → · Contrast checker → · Palette generator →

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