#7D51E9#7D51E9

#7D51E9 is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.7% C 0.217 H 291.2°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7D51E9
RGBrgb(125, 81, 233)
HSLhsl(257, 78%, 62%)
HSVhsv(257, 65%, 91%)
CMYKcmyk(46.4%, 65.2%, 0%, 8.6%)
CIE-LABlab(47.14, 52.85, -70.71)
CIE-LCHlch(47.14, 88.28, 306.77°)
OKLaboklab(56.72% 0.0785 -0.2024)
OKLCHoklch(56.72% 0.217 291.2)
XYZxyz(26.1037, 16.1271, 78.8124)
Luminance0.1613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D51E9 #BDE951
analogous
#5171E9 #7D51E9 #C951E9
triadic
#7D51E9 #E97D51 #51E97D
tetradic
#7D51E9 #E95171 #BDE951 #51E9C9
square
#7D51E9 #E95171 #BDE951 #51E9C9
split-complementary
#7D51E9 #E9C951 #71E951
monochromatic
#4116AA #551CE0 #7D51E9 #A687F0 #CEBEF7

Accessibility & contrast

On white

4.97
#7D51E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#7D51E9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D51E9
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D51E9#FFFFFF#000000##FFFFFF
##7D51E91.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EE
Deuteranopia (green-blind)
#006CE6
Tritanopia (blue-blind)
#5B7696
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7d51e9;
/* rgb */ color: rgb(125, 81, 233);
/* oklch */ color: oklch(56.7% 0.217 291.2);
Tailwind
colors: {
  custom: {
    50: '#ab84f1',
    500: '#7d51e9',
    950: '#000000',
  },
}
SCSS
$custom: #7d51e9;
$custom-light: #ab84f1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d51e9",
  "rgb": {
    "r": 125,
    "g": 81,
    "b": 233
  },
  "hsl": {
    "h": 257.368,
    "s": 77.551,
    "l": 61.569
  },
  "oklch": {
    "l": 0.56718,
    "c": 0.21712,
    "h": 291.2
  },
  "luminance": 0.16128
}

Semantic roles & 50–950 ramp

primary
#7D51E9
secondary
#D7E7AF
accent
#DA0C9E
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7D51E9

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

Preview Lab → · Contrast checker → · Palette generator →

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