#7E51DC#7E51DC

#7E51DC is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 55.8% C 0.202 H 293.7°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#7E51DC
RGBrgb(126, 81, 220)
HSLhsl(259, 67%, 59%)
HSVhsv(259, 63%, 86%)
CMYKcmyk(42.7%, 63.2%, 0%, 13.7%)
CIE-LABlab(46.29, 49.53, -64.71)
CIE-LCHlch(46.29, 81.49, 307.43°)
OKLaboklab(55.83% 0.0812 -0.1848)
OKLCHoklch(55.83% 0.202 293.7)
XYZxyz(24.4614, 15.4871, 69.3968)
Luminance0.1549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E51DC #AFDC51
analogous
#516ADC #7E51DC #C351DC
triadic
#7E51DC #DC7E51 #51DC7E
tetradic
#7E51DC #DC516A #AFDC51 #51DCC3
square
#7E51DC #DC516A #AFDC51 #51DCC3
split-complementary
#7E51DC #DCC351 #6ADC51
monochromatic
#441E95 #5C28C8 #7E51DC #A484E6 #CAB7F0

Accessibility & contrast

On white

5.12
#7E51DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#7E51DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E51DC
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E51DC#FFFFFF#000000##FFFFFF
##7E51DC1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE0
Deuteranopia (green-blind)
#006BD9
Tritanopia (blue-blind)
#64718F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7e51dc;
/* rgb */ color: rgb(126, 81, 220);
/* oklch */ color: oklch(55.8% 0.202 293.7);
Tailwind
colors: {
  custom: {
    50: '#aa84e8',
    500: '#7e51dc',
    950: '#000000',
  },
}
SCSS
$custom: #7e51dc;
$custom-light: #aa84e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e51dc",
  "rgb": {
    "r": 126,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 259.424,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.55833,
    "c": 0.20183,
    "h": 293.7
  },
  "luminance": 0.15488
}

Semantic roles & 50–950 ramp

primary
#7E51DC
secondary
#CEE0A9
accent
#E93EB2
background
#FAF8FE
surface
#F5EFFD
border
#CFCAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E51DC

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

Preview Lab → · Contrast checker → · Palette generator →

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