#7E51DD#7E51DD

#7E51DD is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 55.9% C 0.203 H 293.5°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#7E51DD
RGBrgb(126, 81, 221)
HSLhsl(259, 67%, 59%)
HSVhsv(259, 63%, 87%)
CMYKcmyk(43%, 63.3%, 0%, 13.3%)
CIE-LABlab(46.37, 49.80, -65.17)
CIE-LCHlch(46.37, 82.02, 307.39°)
OKLaboklab(55.91% 0.0811 -0.1861)
OKLCHoklch(55.91% 0.203 293.5)
XYZxyz(24.5942, 15.5403, 70.0963)
Luminance0.1554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E51DD #B0DD51
analogous
#516ADD #7E51DD #C451DD
triadic
#7E51DD #DD7E51 #51DD7E
tetradic
#7E51DD #DD516A #B0DD51 #51DDC4
square
#7E51DD #DD516A #B0DD51 #51DDC4
split-complementary
#7E51DD #DDC451 #6ADD51
monochromatic
#441D96 #5B27C9 #7E51DD #A484E7 #CAB7F1

Accessibility & contrast

On white

5.11
#7E51DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#7E51DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E51DD
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E51DD#FFFFFF#000000##FFFFFF
##7E51DD1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE1
Deuteranopia (green-blind)
#006BDA
Tritanopia (blue-blind)
#647290
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7e51dd;
/* rgb */ color: rgb(126, 81, 221);
/* oklch */ color: oklch(55.9% 0.203 293.5);
Tailwind
colors: {
  custom: {
    50: '#aa84e8',
    500: '#7e51dd',
    950: '#000000',
  },
}
SCSS
$custom: #7e51dd;
$custom-light: #aa84e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e51dd",
  "rgb": {
    "r": 126,
    "g": 81,
    "b": 221
  },
  "hsl": {
    "h": 259.286,
    "s": 67.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.55907,
    "c": 0.20302,
    "h": 293.5
  },
  "luminance": 0.15541
}

Semantic roles & 50–950 ramp

primary
#7E51DD
secondary
#CFE0AA
accent
#EA3EB3
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E51DD

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

Preview Lab → · Contrast checker → · Palette generator →

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