#7D51E4#7D51E4

#7D51E4 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.3% C 0.211 H 292.0°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#7D51E4
RGBrgb(125, 81, 228)
HSLhsl(258, 73%, 61%)
HSVhsv(258, 64%, 89%)
CMYKcmyk(45.2%, 64.5%, 0%, 10.6%)
CIE-LABlab(46.77, 51.49, -68.49)
CIE-LCHlch(46.77, 85.68, 306.94°)
OKLaboklab(56.34% 0.0791 -0.1959)
OKLCHoklch(56.34% 0.211 292)
XYZxyz(25.3996, 15.8454, 75.1039)
Luminance0.1585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D51E4 #B8E451
analogous
#516EE4 #7D51E4 #C651E4
triadic
#7D51E4 #E47D51 #51E47D
tetradic
#7D51E4 #E4516E #B8E451 #51E4C6
square
#7D51E4 #E4516E #B8E451 #51E4C6
split-complementary
#7D51E4 #E4C651 #6EE451
monochromatic
#4219A2 #5821D7 #7D51E4 #A586EC #CCBBF4

Accessibility & contrast

On white

5.04
#7D51E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#7D51E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D51E4
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D51E4#FFFFFF#000000##FFFFFF
##7D51E41.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E9
Deuteranopia (green-blind)
#006CE1
Tritanopia (blue-blind)
#5E7493
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7d51e4;
/* rgb */ color: rgb(125, 81, 228);
/* oklch */ color: oklch(56.3% 0.211 292.0);
Tailwind
colors: {
  custom: {
    50: '#aa84ed',
    500: '#7d51e4',
    950: '#000000',
  },
}
SCSS
$custom: #7d51e4;
$custom-light: #aa84ed;
$custom-dark: #000000;
JSON
{
  "hex": "#7d51e4",
  "rgb": {
    "r": 125,
    "g": 81,
    "b": 228
  },
  "hsl": {
    "h": 257.959,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.56336,
    "c": 0.21126,
    "h": 292
  },
  "luminance": 0.15846
}

Semantic roles & 50–950 ramp

primary
#7D51E4
secondary
#D4E4AC
accent
#D5109A
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7D51E4

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

Preview Lab → · Contrast checker → · Palette generator →

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