#7E51DB#7E51DB

#7E51DB is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 55.8% C 0.201 H 293.9°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#7E51DB
RGBrgb(126, 81, 219)
HSLhsl(260, 66%, 59%)
HSVhsv(260, 63%, 86%)
CMYKcmyk(42.5%, 63%, 0%, 14.1%)
CIE-LABlab(46.22, 49.26, -64.26)
CIE-LCHlch(46.22, 80.97, 307.48°)
OKLaboklab(55.76% 0.0813 -0.1834)
OKLCHoklch(55.76% 0.201 293.9)
XYZxyz(24.3293, 15.4343, 68.7014)
Luminance0.1543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E51DB #AEDB51
analogous
#5169DB #7E51DB #C351DB
triadic
#7E51DB #DB7E51 #51DB7E
tetradic
#7E51DB #DB5169 #AEDB51 #51DBC3
square
#7E51DB #DB5169 #AEDB51 #51DBC3
split-complementary
#7E51DB #DBC351 #69DB51
monochromatic
#451E93 #5C29C6 #7E51DB #A484E5 #C9B6F0

Accessibility & contrast

On white

5.14
#7E51DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#7E51DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E51DB
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E51DB#FFFFFF#000000##FFFFFF
##7E51DB1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDF
Deuteranopia (green-blind)
#006BD8
Tritanopia (blue-blind)
#65718F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7e51db;
/* rgb */ color: rgb(126, 81, 219);
/* oklch */ color: oklch(55.8% 0.201 293.9);
Tailwind
colors: {
  custom: {
    50: '#aa84e7',
    500: '#7e51db',
    950: '#000000',
  },
}
SCSS
$custom: #7e51db;
$custom-light: #aa84e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e51db",
  "rgb": {
    "r": 126,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 259.565,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.55759,
    "c": 0.20064,
    "h": 293.9
  },
  "luminance": 0.15435
}

Semantic roles & 50–950 ramp

primary
#7E51DB
secondary
#CDDFA9
accent
#E93FB1
background
#FAF8FE
surface
#F5EFFD
border
#CFCAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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