#7D51EC#7D51EC

#7D51EC is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 57.0% C 0.221 H 290.7°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#7D51EC
RGBrgb(125, 81, 236)
HSLhsl(257, 80%, 62%)
HSVhsv(257, 66%, 93%)
CMYKcmyk(47%, 65.7%, 0%, 7.5%)
CIE-LABlab(47.37, 53.66, -72.03)
CIE-LCHlch(47.37, 89.83, 306.68°)
OKLaboklab(56.95% 0.0781 -0.2063)
OKLCHoklch(56.95% 0.221 290.7)
XYZxyz(26.5359, 16.3000, 81.0887)
Luminance0.1630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D51EC #C0EC51
analogous
#5173EC #7D51EC #CA51EC
triadic
#7D51EC #EC7D51 #51EC7D
tetradic
#7D51EC #EC5173 #C0EC51 #51ECCA
square
#7D51EC #EC5173 #C0EC51 #51ECCA
split-complementary
#7D51EC #ECCA51 #73EC51
monochromatic
#4013AF #541AE6 #7D51EC #A688F2 #CFBFF8

Accessibility & contrast

On white

4.93
#7D51EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#7D51EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D51EC
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D51EC#FFFFFF#000000##FFFFFF
##7D51EC1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F1
Deuteranopia (green-blind)
#006DE9
Tritanopia (blue-blind)
#5A7798
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7d51ec;
/* rgb */ color: rgb(125, 81, 236);
/* oklch */ color: oklch(57.0% 0.221 290.7);
Tailwind
colors: {
  custom: {
    50: '#ab84f3',
    500: '#7d51ec',
    950: '#000000',
  },
}
SCSS
$custom: #7d51ec;
$custom-light: #ab84f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d51ec",
  "rgb": {
    "r": 125,
    "g": 81,
    "b": 236
  },
  "hsl": {
    "h": 257.032,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.56951,
    "c": 0.22063,
    "h": 290.7
  },
  "luminance": 0.16301
}

Semantic roles & 50–950 ramp

primary
#7D51EC
secondary
#D9E9B0
accent
#DD09A1
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7D51EC

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

Preview Lab → · Contrast checker → · Palette generator →

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