#7C51E8#7C51E8

#7C51E8 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.5% C 0.216 H 291.0°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#7C51E8
RGBrgb(124, 81, 232)
HSLhsl(257, 77%, 61%)
HSVhsv(257, 65%, 91%)
CMYKcmyk(46.6%, 65.1%, 0%, 9%)
CIE-LABlab(46.97, 52.39, -70.43)
CIE-LCHlch(46.97, 87.78, 306.65°)
OKLaboklab(56.55% 0.0773 -0.2016)
OKLCHoklch(56.55% 0.216 291)
XYZxyz(25.8160, 15.9952, 78.0554)
Luminance0.1600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C51E8 #BDE851
analogous
#5172E8 #7C51E8 #C851E8
triadic
#7C51E8 #E87C51 #51E87C
tetradic
#7C51E8 #E85172 #BDE851 #51E8C8
square
#7C51E8 #E85172 #BDE851 #51E8C8
split-complementary
#7C51E8 #E8C851 #72E851
monochromatic
#4016A8 #541DDE #7C51E8 #A587EF #CDBDF6

Accessibility & contrast

On white

5.00
#7C51E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#7C51E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C51E8
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C51E8#FFFFFF#000000##FFFFFF
##7C51E81.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072ED
Deuteranopia (green-blind)
#006CE5
Tritanopia (blue-blind)
#5A7696
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7c51e8;
/* rgb */ color: rgb(124, 81, 232);
/* oklch */ color: oklch(56.5% 0.216 291.0);
Tailwind
colors: {
  custom: {
    50: '#aa84f0',
    500: '#7c51e8',
    950: '#000000',
  },
}
SCSS
$custom: #7c51e8;
$custom-light: #aa84f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c51e8",
  "rgb": {
    "r": 124,
    "g": 81,
    "b": 232
  },
  "hsl": {
    "h": 257.086,
    "s": 76.65,
    "l": 61.373
  },
  "oklch": {
    "l": 0.56548,
    "c": 0.21595,
    "h": 291
  },
  "luminance": 0.15996
}

Semantic roles & 50–950 ramp

primary
#7C51E8
secondary
#D7E7AE
accent
#D90D9F
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7C51E8

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

Preview Lab → · Contrast checker → · Palette generator →

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