#7D51EB#7D51EB

#7D51EB is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 56.9% C 0.219 H 290.9°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#7D51EB
RGBrgb(125, 81, 235)
HSLhsl(257, 79%, 62%)
HSVhsv(257, 66%, 92%)
CMYKcmyk(46.8%, 65.5%, 0%, 7.8%)
CIE-LABlab(47.29, 53.39, -71.59)
CIE-LCHlch(47.29, 89.31, 306.71°)
OKLaboklab(56.87% 0.0782 -0.205)
OKLCHoklch(56.87% 0.219 290.9)
XYZxyz(26.3910, 16.2420, 80.3256)
Luminance0.1624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D51EB #BFEB51
analogous
#5172EB #7D51EB #CA51EB
triadic
#7D51EB #EB7D51 #51EB7D
tetradic
#7D51EB #EB5172 #BFEB51 #51EBCA
square
#7D51EB #EB5172 #BFEB51 #51EBCA
split-complementary
#7D51EB #EBCA51 #72EB51
monochromatic
#4014AE #541AE5 #7D51EB #A688F1 #CFBFF8

Accessibility & contrast

On white

4.94
#7D51EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#7D51EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D51EB
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D51EB#FFFFFF#000000##FFFFFF
##7D51EB1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F0
Deuteranopia (green-blind)
#006DE8
Tritanopia (blue-blind)
#5A7797
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7d51eb;
/* rgb */ color: rgb(125, 81, 235);
/* oklch */ color: oklch(56.9% 0.219 290.9);
Tailwind
colors: {
  custom: {
    50: '#ab84f2',
    500: '#7d51eb',
    950: '#000000',
  },
}
SCSS
$custom: #7d51eb;
$custom-light: #ab84f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d51eb",
  "rgb": {
    "r": 125,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 257.143,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.56873,
    "c": 0.21946,
    "h": 290.9
  },
  "luminance": 0.16243
}

Semantic roles & 50–950 ramp

primary
#7D51EB
secondary
#D8E8B0
accent
#DC0AA0
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7D51EB

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

Preview Lab → · Contrast checker → · Palette generator →

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