#7C51CC#7C51CC

#7C51CC is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.5% C 0.182 H 295.9°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#7C51CC
RGBrgb(124, 81, 204)
HSLhsl(261, 55%, 56%)
HSVhsv(261, 60%, 80%)
CMYKcmyk(39.2%, 60.3%, 0%, 20%)
CIE-LABlab(44.98, 44.84, -57.68)
CIE-LCHlch(44.98, 73.06, 307.86°)
OKLaboklab(54.48% 0.0796 -0.1642)
OKLCHoklch(54.48% 0.182 295.9)
XYZxyz(22.1509, 14.5291, 58.7524)
Luminance0.1453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C51CC #A1CC51
analogous
#5163CC #7C51CC #BA51CC
triadic
#7C51CC #CC7C51 #51CC7C
tetradic
#7C51CC #CC5163 #A1CC51 #51CCBA
square
#7C51CC #CC5163 #A1CC51 #51CCBA
split-complementary
#7C51CC #CCBA51 #63CC51
monochromatic
#44257E #5D33AD #7C51CC #A080DA #C3B0E8

Accessibility & contrast

On white

5.38
#7C51CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#7C51CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C51CC
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C51CC#FFFFFF#000000##FFFFFF
##7C51CC1.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD0
Deuteranopia (green-blind)
#1469C9
Tritanopia (blue-blind)
#686C87
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7c51cc;
/* rgb */ color: rgb(124, 81, 204);
/* oklch */ color: oklch(54.5% 0.182 295.9);
Tailwind
colors: {
  custom: {
    50: '#a784dc',
    500: '#7c51cc',
    950: '#000000',
  },
}
SCSS
$custom: #7c51cc;
$custom-light: #a784dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7c51cc",
  "rgb": {
    "r": 124,
    "g": 81,
    "b": 204
  },
  "hsl": {
    "h": 260.976,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.54481,
    "c": 0.18244,
    "h": 295.9
  },
  "luminance": 0.1453
}

Semantic roles & 50–950 ramp

primary
#7C51CC
secondary
#C4D6A3
accent
#DE4AAA
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7C51CC

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

Preview Lab → · Contrast checker → · Palette generator →

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