#7C51E9#7C51E9

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

Color values

HEX#7C51E9
RGBrgb(124, 81, 233)
HSLhsl(257, 78%, 62%)
HSVhsv(257, 65%, 91%)
CMYKcmyk(46.8%, 65.2%, 0%, 8.6%)
CIE-LABlab(47.04, 52.67, -70.87)
CIE-LCHlch(47.04, 88.30, 306.62°)
OKLaboklab(56.63% 0.0772 -0.2029)
OKLCHoklch(56.63% 0.217 290.8)
XYZxyz(25.9584, 16.0522, 78.8056)
Luminance0.1605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C51E9 #BEE951
analogous
#5172E9 #7C51E9 #C851E9
triadic
#7C51E9 #E97C51 #51E97C
tetradic
#7C51E9 #E95172 #BEE951 #51E9C8
square
#7C51E9 #E95172 #BEE951 #51E9C8
split-complementary
#7C51E9 #E9C851 #72E951
monochromatic
#4016AA #541CE0 #7C51E9 #A587F0 #CEBEF7

Accessibility & contrast

On white

4.99
#7C51E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7C51E9
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C51E9#FFFFFF#000000##FFFFFF
##7C51E91.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EE
Deuteranopia (green-blind)
#006CE6
Tritanopia (blue-blind)
#5A7696
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7c51e9;
/* rgb */ color: rgb(124, 81, 233);
/* oklch */ color: oklch(56.6% 0.217 290.8);
Tailwind
colors: {
  custom: {
    50: '#aa84f1',
    500: '#7c51e9',
    950: '#000000',
  },
}
SCSS
$custom: #7c51e9;
$custom-light: #aa84f1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c51e9",
  "rgb": {
    "r": 124,
    "g": 81,
    "b": 233
  },
  "hsl": {
    "h": 256.974,
    "s": 77.551,
    "l": 61.569
  },
  "oklch": {
    "l": 0.56625,
    "c": 0.21712,
    "h": 290.8
  },
  "luminance": 0.16053
}

Semantic roles & 50–950 ramp

primary
#7C51E9
secondary
#D7E7AF
accent
#DA0C9F
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7C51E9

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

Preview Lab → · Contrast checker → · Palette generator →

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