#7C51EC#7C51EC

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

Color values

HEX#7C51EC
RGBrgb(124, 81, 236)
HSLhsl(257, 80%, 62%)
HSVhsv(257, 66%, 93%)
CMYKcmyk(47.5%, 65.7%, 0%, 7.5%)
CIE-LABlab(47.27, 53.48, -72.20)
CIE-LCHlch(47.27, 89.85, 306.53°)
OKLaboklab(56.86% 0.0768 -0.2068)
OKLCHoklch(56.86% 0.221 290.4)
XYZxyz(26.3906, 16.2251, 81.0818)
Luminance0.1623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C51EC #C1EC51
analogous
#5174EC #7C51EC #C951EC
triadic
#7C51EC #EC7C51 #51EC7C
tetradic
#7C51EC #EC5174 #C1EC51 #51ECC9
square
#7C51EC #EC5174 #C1EC51 #51ECC9
split-complementary
#7C51EC #ECC951 #74EC51
monochromatic
#3F13AF #521AE6 #7C51EC #A688F2 #CFBFF8

Accessibility & contrast

On white

4.95
#7C51EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7C51EC
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C51EC#FFFFFF#000000##FFFFFF
##7C51EC1.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c51ec;
/* rgb */ color: rgb(124, 81, 236);
/* oklch */ color: oklch(56.9% 0.221 290.4);
Tailwind
colors: {
  custom: {
    50: '#aa84f3',
    500: '#7c51ec',
    950: '#000000',
  },
}
SCSS
$custom: #7c51ec;
$custom-light: #aa84f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c51ec",
  "rgb": {
    "r": 124,
    "g": 81,
    "b": 236
  },
  "hsl": {
    "h": 256.645,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.56858,
    "c": 0.22064,
    "h": 290.4
  },
  "luminance": 0.16226
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C51EC

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

Preview Lab → · Contrast checker → · Palette generator →

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