#7D51E5#7D51E5

#7D51E5 is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.4% C 0.212 H 291.8°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#7D51E5
RGBrgb(125, 81, 229)
HSLhsl(258, 74%, 61%)
HSVhsv(258, 65%, 90%)
CMYKcmyk(45.4%, 64.6%, 0%, 10.2%)
CIE-LABlab(46.84, 51.76, -68.93)
CIE-LCHlch(46.84, 86.20, 306.90°)
OKLaboklab(56.41% 0.079 -0.1972)
OKLCHoklch(56.41% 0.212 291.8)
XYZxyz(25.5388, 15.9011, 75.8372)
Luminance0.1590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D51E5 #B9E551
analogous
#516FE5 #7D51E5 #C751E5
triadic
#7D51E5 #E57D51 #51E57D
tetradic
#7D51E5 #E5516F #B9E551 #51E5C7
square
#7D51E5 #E5516F #B9E551 #51E5C7
split-complementary
#7D51E5 #E5C751 #6FE551
monochromatic
#4218A3 #5720D8 #7D51E5 #A586ED #CDBBF5

Accessibility & contrast

On white

5.02
#7D51E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#7D51E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D51E5
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D51E5#FFFFFF#000000##FFFFFF
##7D51E51.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EA
Deuteranopia (green-blind)
#006CE2
Tritanopia (blue-blind)
#5E7494
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7d51e5;
/* rgb */ color: rgb(125, 81, 229);
/* oklch */ color: oklch(56.4% 0.212 291.8);
Tailwind
colors: {
  custom: {
    50: '#aa84ee',
    500: '#7d51e5',
    950: '#000000',
  },
}
SCSS
$custom: #7d51e5;
$custom-light: #aa84ee;
$custom-dark: #000000;
JSON
{
  "hex": "#7d51e5",
  "rgb": {
    "r": 125,
    "g": 81,
    "b": 229
  },
  "hsl": {
    "h": 257.838,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.56412,
    "c": 0.21243,
    "h": 291.8
  },
  "luminance": 0.15902
}

Semantic roles & 50–950 ramp

primary
#7D51E5
secondary
#D4E5AD
accent
#D60F9B
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7D51E5

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

Preview Lab → · Contrast checker → · Palette generator →

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