#7C51EA#7C51EA

#7C51EA is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.7% C 0.218 H 290.7°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7C51EA
RGBrgb(124, 81, 234)
HSLhsl(257, 78%, 62%)
HSVhsv(257, 65%, 92%)
CMYKcmyk(47%, 65.4%, 0%, 8.2%)
CIE-LABlab(47.12, 52.94, -71.32)
CIE-LCHlch(47.12, 88.82, 306.59°)
OKLaboklab(56.7% 0.077 -0.2042)
OKLCHoklch(56.7% 0.218 290.7)
XYZxyz(26.1017, 16.1095, 79.5601)
Luminance0.1611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C51EA #BFEA51
analogous
#5173EA #7C51EA #C951EA
triadic
#7C51EA #EA7C51 #51EA7C
tetradic
#7C51EA #EA5173 #BFEA51 #51EAC9
square
#7C51EA #EA5173 #BFEA51 #51EAC9
split-complementary
#7C51EA #EAC951 #73EA51
monochromatic
#3F15AC #531BE2 #7C51EA #A588F1 #CEBEF7

Accessibility & contrast

On white

4.97
#7C51EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7C51EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C51EA
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C51EA#FFFFFF#000000##FFFFFF
##7C51EA1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EF
Deuteranopia (green-blind)
#006CE7
Tritanopia (blue-blind)
#597697
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7c51ea;
/* rgb */ color: rgb(124, 81, 234);
/* oklch */ color: oklch(56.7% 0.218 290.7);
Tailwind
colors: {
  custom: {
    50: '#aa84f2',
    500: '#7c51ea',
    950: '#000000',
  },
}
SCSS
$custom: #7c51ea;
$custom-light: #aa84f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c51ea",
  "rgb": {
    "r": 124,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 256.863,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.56702,
    "c": 0.21829,
    "h": 290.7
  },
  "luminance": 0.1611
}

Semantic roles & 50–950 ramp

primary
#7C51EA
secondary
#D8E8AF
accent
#DB0BA0
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7C51EA

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

Preview Lab → · Contrast checker → · Palette generator →

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