#7D51E8#7D51E8

#7D51E8 is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.6% C 0.216 H 291.3°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7D51E8
RGBrgb(125, 81, 232)
HSLhsl(257, 77%, 61%)
HSVhsv(257, 65%, 91%)
CMYKcmyk(46.1%, 65.1%, 0%, 9%)
CIE-LABlab(47.07, 52.58, -70.27)
CIE-LCHlch(47.07, 87.76, 306.81°)
OKLaboklab(56.64% 0.0786 -0.2011)
OKLCHoklch(56.64% 0.216 291.3)
XYZxyz(25.9613, 16.0701, 78.0622)
Luminance0.1607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D51E8 #BCE851
analogous
#5171E8 #7D51E8 #C851E8
triadic
#7D51E8 #E87D51 #51E87D
tetradic
#7D51E8 #E85171 #BCE851 #51E8C8
square
#7D51E8 #E85171 #BCE851 #51E8C8
split-complementary
#7D51E8 #E8C851 #71E851
monochromatic
#4116A8 #561DDE #7D51E8 #A587EF #CEBDF6

Accessibility & contrast

On white

4.98
#7D51E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#7D51E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D51E8
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D51E8#FFFFFF#000000##FFFFFF
##7D51E81.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072ED
Deuteranopia (green-blind)
#006CE5
Tritanopia (blue-blind)
#5C7696
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7d51e8;
/* rgb */ color: rgb(125, 81, 232);
/* oklch */ color: oklch(56.6% 0.216 291.3);
Tailwind
colors: {
  custom: {
    50: '#ab84f0',
    500: '#7d51e8',
    950: '#000000',
  },
}
SCSS
$custom: #7d51e8;
$custom-light: #ab84f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d51e8",
  "rgb": {
    "r": 125,
    "g": 81,
    "b": 232
  },
  "hsl": {
    "h": 257.483,
    "s": 76.65,
    "l": 61.373
  },
  "oklch": {
    "l": 0.56642,
    "c": 0.21596,
    "h": 291.3
  },
  "luminance": 0.16071
}

Semantic roles & 50–950 ramp

primary
#7D51E8
secondary
#D6E7AE
accent
#D90D9D
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7D51E8

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

Preview Lab → · Contrast checker → · Palette generator →

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