#7C51EB#7C51EB

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

Color values

HEX#7C51EB
RGBrgb(124, 81, 235)
HSLhsl(257, 79%, 62%)
HSVhsv(257, 66%, 92%)
CMYKcmyk(47.2%, 65.5%, 0%, 7.8%)
CIE-LABlab(47.19, 53.21, -71.76)
CIE-LCHlch(47.19, 89.33, 306.56°)
OKLaboklab(56.78% 0.0769 -0.2055)
OKLCHoklch(56.78% 0.219 290.5)
XYZxyz(26.2458, 16.1671, 80.3188)
Luminance0.1617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C51EB #C0EB51
analogous
#5173EB #7C51EB #C951EB
triadic
#7C51EB #EB7C51 #51EB7C
tetradic
#7C51EB #EB5173 #C0EB51 #51EBC9
square
#7C51EB #EB5173 #C0EB51 #51EBC9
split-complementary
#7C51EB #EBC951 #73EB51
monochromatic
#3F14AE #531AE5 #7C51EB #A588F1 #CFBFF8

Accessibility & contrast

On white

4.96
#7C51EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#7C51EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C51EB
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C51EB#FFFFFF#000000##FFFFFF
##7C51EB1.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F0
Deuteranopia (green-blind)
#006CE8
Tritanopia (blue-blind)
#587797
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7c51eb;
/* rgb */ color: rgb(124, 81, 235);
/* oklch */ color: oklch(56.8% 0.219 290.5);
Tailwind
colors: {
  custom: {
    50: '#aa84f2',
    500: '#7c51eb',
    950: '#000000',
  },
}
SCSS
$custom: #7c51eb;
$custom-light: #aa84f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c51eb",
  "rgb": {
    "r": 124,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 256.753,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.5678,
    "c": 0.21946,
    "h": 290.5
  },
  "luminance": 0.16168
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C51EB

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

Preview Lab → · Contrast checker → · Palette generator →

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