#7C4FCC#7C4FCC

#7C4FCC is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.2% C 0.185 H 296.2°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#7C4FCC
RGBrgb(124, 79, 204)
HSLhsl(262, 55%, 55%)
HSVhsv(262, 61%, 80%)
CMYKcmyk(39.2%, 61.3%, 0%, 20%)
CIE-LABlab(44.57, 45.94, -58.35)
CIE-LCHlch(44.57, 74.26, 308.21°)
OKLaboklab(54.18% 0.0819 -0.1661)
OKLCHoklch(54.18% 0.185 296.2)
XYZxyz(22.0044, 14.2363, 58.7036)
Luminance0.1424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4FCC #9FCC4F
analogous
#4F60CC #7C4FCC #BA4FCC
triadic
#7C4FCC #CC7C4F #4FCC7C
tetradic
#7C4FCC #CC4F60 #9FCC4F #4FCCBA
square
#7C4FCC #CC4F60 #9FCC4F #4FCCBA
split-complementary
#7C4FCC #CCBA4F #60CC4F
monochromatic
#44247D #5E32AC #7C4FCC #9F7EDA #C3AEE7

Accessibility & contrast

On white

5.46
#7C4FCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#7C4FCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C4FCC
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C4FCC#FFFFFF#000000##FFFFFF
##7C4FCC1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD0
Deuteranopia (green-blind)
#0C68C9
Tritanopia (blue-blind)
#686B86
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7c4fcc;
/* rgb */ color: rgb(124, 79, 204);
/* oklch */ color: oklch(54.2% 0.185 296.2);
Tailwind
colors: {
  custom: {
    50: '#a782dc',
    500: '#7c4fcc',
    950: '#000000',
  },
}
SCSS
$custom: #7c4fcc;
$custom-light: #a782dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4fcc",
  "rgb": {
    "r": 124,
    "g": 79,
    "b": 204
  },
  "hsl": {
    "h": 261.6,
    "s": 55.066,
    "l": 55.49
  },
  "oklch": {
    "l": 0.54181,
    "c": 0.18522,
    "h": 296.2
  },
  "luminance": 0.14237
}

Semantic roles & 50–950 ramp

primary
#7C4FCC
secondary
#C3D5A1
accent
#DE49A9
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7C4FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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