#7D51E7#7D51E7

#7D51E7 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.6% C 0.215 H 291.5°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#7D51E7
RGBrgb(125, 81, 231)
HSLhsl(258, 76%, 61%)
HSVhsv(258, 65%, 91%)
CMYKcmyk(45.9%, 64.9%, 0%, 9.4%)
CIE-LABlab(46.99, 52.30, -69.82)
CIE-LCHlch(46.99, 87.24, 306.84°)
OKLaboklab(56.57% 0.0787 -0.1998)
OKLCHoklch(56.57% 0.215 291.5)
XYZxyz(25.8196, 16.0135, 77.3163)
Luminance0.1601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D51E7 #BBE751
analogous
#5170E7 #7D51E7 #C851E7
triadic
#7D51E7 #E77D51 #51E77D
tetradic
#7D51E7 #E75170 #BBE751 #51E7C8
square
#7D51E7 #E75170 #BBE751 #51E7C8
split-complementary
#7D51E7 #E7C851 #70E751
monochromatic
#4117A7 #561EDC #7D51E7 #A587EE #CDBDF6

Accessibility & contrast

On white

5.00
#7D51E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#7D51E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D51E7
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D51E7#FFFFFF#000000##FFFFFF
##7D51E71.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EC
Deuteranopia (green-blind)
#006CE4
Tritanopia (blue-blind)
#5D7595
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7d51e7;
/* rgb */ color: rgb(125, 81, 231);
/* oklch */ color: oklch(56.6% 0.215 291.5);
Tailwind
colors: {
  custom: {
    50: '#aa84f0',
    500: '#7d51e7',
    950: '#000000',
  },
}
SCSS
$custom: #7d51e7;
$custom-light: #aa84f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d51e7",
  "rgb": {
    "r": 125,
    "g": 81,
    "b": 231
  },
  "hsl": {
    "h": 257.6,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.56565,
    "c": 0.21478,
    "h": 291.5
  },
  "luminance": 0.16014
}

Semantic roles & 50–950 ramp

primary
#7D51E7
secondary
#D6E6AE
accent
#D80E9D
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7D51E7

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

Preview Lab → · Contrast checker → · Palette generator →

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