#7C4CCC#7C4CCC

#7C4CCC is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.7% C 0.189 H 296.8°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#7C4CCC
RGBrgb(124, 76, 204)
HSLhsl(263, 56%, 55%)
HSVhsv(263, 63%, 80%)
CMYKcmyk(39.2%, 62.7%, 0%, 20%)
CIE-LABlab(43.96, 47.56, -59.33)
CIE-LCHlch(43.96, 76.04, 308.72°)
OKLaboklab(53.74% 0.0853 -0.169)
OKLCHoklch(53.74% 0.189 296.8)
XYZxyz(21.7929, 13.8132, 58.6331)
Luminance0.1381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4CCC #9CCC4C
analogous
#4C5CCC #7C4CCC #BC4CCC
triadic
#7C4CCC #CC7C4C #4CCC7C
tetradic
#7C4CCC #CC4C5C #9CCC4C #4CCCBC
square
#7C4CCC #CC4C5C #9CCC4C #4CCCBC
split-complementary
#7C4CCC #CCBC4C #5CCC4C
monochromatic
#44237B #5E31AA #7C4CCC #9F7CDA #C2ABE7

Accessibility & contrast

On white

5.58
#7C4CCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#7C4CCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C4CCC
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C4CCC#FFFFFF#000000##FFFFFF
##7C4CCC1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#0066C9
Tritanopia (blue-blind)
#686985
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7c4ccc;
/* rgb */ color: rgb(124, 76, 204);
/* oklch */ color: oklch(53.7% 0.189 296.8);
Tailwind
colors: {
  custom: {
    50: '#a780dc',
    500: '#7c4ccc',
    950: '#000000',
  },
}
SCSS
$custom: #7c4ccc;
$custom-light: #a780dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4ccc",
  "rgb": {
    "r": 124,
    "g": 76,
    "b": 204
  },
  "hsl": {
    "h": 262.5,
    "s": 55.652,
    "l": 54.902
  },
  "oklch": {
    "l": 0.5374,
    "c": 0.18931,
    "h": 296.8
  },
  "luminance": 0.13814
}

Semantic roles & 50–950 ramp

primary
#7C4CCC
secondary
#C1D59F
accent
#DF49A7
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7C4CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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