#7C51CE#7C51CE

#7C51CE is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.6% C 0.185 H 295.5°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#7C51CE
RGBrgb(124, 81, 206)
HSLhsl(261, 56%, 56%)
HSVhsv(261, 61%, 81%)
CMYKcmyk(39.8%, 60.7%, 0%, 19.2%)
CIE-LABlab(45.12, 45.37, -58.62)
CIE-LCHlch(45.12, 74.12, 307.74°)
OKLaboklab(54.62% 0.0795 -0.1669)
OKLCHoklch(54.62% 0.185 295.5)
XYZxyz(22.3923, 14.6257, 60.0238)
Luminance0.1463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C51CE #A3CE51
analogous
#5165CE #7C51CE #BB51CE
triadic
#7C51CE #CE7C51 #51CE7C
tetradic
#7C51CE #CE5165 #A3CE51 #51CEBB
square
#7C51CE #CE5165 #A3CE51 #51CEBB
split-complementary
#7C51CE #CEBB51 #65CE51
monochromatic
#442480 #5D32B0 #7C51CE #A081DB #C4B1E9

Accessibility & contrast

On white

5.35
#7C51CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#7C51CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C51CE
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C51CE#FFFFFF#000000##FFFFFF
##7C51CE1.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD2
Deuteranopia (green-blind)
#0D69CB
Tritanopia (blue-blind)
#676D88
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7c51ce;
/* rgb */ color: rgb(124, 81, 206);
/* oklch */ color: oklch(54.6% 0.185 295.5);
Tailwind
colors: {
  custom: {
    50: '#a784de',
    500: '#7c51ce',
    950: '#000000',
  },
}
SCSS
$custom: #7c51ce;
$custom-light: #a784de;
$custom-dark: #000000;
JSON
{
  "hex": "#7c51ce",
  "rgb": {
    "r": 124,
    "g": 81,
    "b": 206
  },
  "hsl": {
    "h": 260.64,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54622,
    "c": 0.18488,
    "h": 295.5
  },
  "luminance": 0.14626
}

Semantic roles & 50–950 ramp

primary
#7C51CE
secondary
#C5D7A4
accent
#DF48AB
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7C51CE

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

Preview Lab → · Contrast checker → · Palette generator →

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