#7E51DA#7E51DA

#7E51DA is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.7% C 0.199 H 294.1°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#7E51DA
RGBrgb(126, 81, 218)
HSLhsl(260, 65%, 59%)
HSVhsv(260, 63%, 85%)
CMYKcmyk(42.2%, 62.8%, 0%, 14.5%)
CIE-LABlab(46.15, 49.00, -63.80)
CIE-LCHlch(46.15, 80.45, 307.52°)
OKLaboklab(55.69% 0.0814 -0.1821)
OKLCHoklch(55.69% 0.199 294.1)
XYZxyz(24.1981, 15.3818, 68.0101)
Luminance0.1538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E51DA #ADDA51
analogous
#5168DA #7E51DA #C251DA
triadic
#7E51DA #DA7E51 #51DA7E
tetradic
#7E51DA #DA5168 #ADDA51 #51DAC2
square
#7E51DA #DA5168 #ADDA51 #51DAC2
split-complementary
#7E51DA #DAC251 #68DA51
monochromatic
#451F92 #5C2AC4 #7E51DA #A383E5 #C9B6EF

Accessibility & contrast

On white

5.15
#7E51DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#7E51DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E51DA
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E51DA#FFFFFF#000000##FFFFFF
##7E51DA1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDE
Deuteranopia (green-blind)
#006BD7
Tritanopia (blue-blind)
#65718E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7e51da;
/* rgb */ color: rgb(126, 81, 218);
/* oklch */ color: oklch(55.7% 0.199 294.1);
Tailwind
colors: {
  custom: {
    50: '#aa84e6',
    500: '#7e51da',
    950: '#000000',
  },
}
SCSS
$custom: #7e51da;
$custom-light: #aa84e6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e51da",
  "rgb": {
    "r": 126,
    "g": 81,
    "b": 218
  },
  "hsl": {
    "h": 259.708,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.55686,
    "c": 0.19946,
    "h": 294.1
  },
  "luminance": 0.15382
}

Semantic roles & 50–950 ramp

primary
#7E51DA
secondary
#CDDEA8
accent
#E840B1
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E51DA

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

Preview Lab → · Contrast checker → · Palette generator →

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