#7C4DCD#7C4DCD

#7C4DCD is a mid, vivid violet. Relative luminance 0.140; OKLCH L 54.0% C 0.189 H 296.4°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#7C4DCD
RGBrgb(124, 77, 205)
HSLhsl(262, 56%, 55%)
HSVhsv(262, 62%, 80%)
CMYKcmyk(39.5%, 62.4%, 0%, 19.6%)
CIE-LABlab(44.23, 47.29, -59.47)
CIE-LCHlch(44.23, 75.98, 308.49°)
OKLaboklab(53.96% 0.0841 -0.1694)
OKLCHoklch(53.96% 0.189 296.4)
XYZxyz(21.9826, 14.0002, 59.2899)
Luminance0.1400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4DCD #9ECD4D
analogous
#4D5ECD #7C4DCD #BC4DCD
triadic
#7C4DCD #CD7C4D #4DCD7C
tetradic
#7C4DCD #CD4D5E #9ECD4D #4DCDBC
square
#7C4DCD #CD4D5E #9ECD4D #4DCDBC
split-complementary
#7C4DCD #CDBC4D #5ECD4D
monochromatic
#44237D #5E30AC #7C4DCD #9F7DDA #C2ADE8

Accessibility & contrast

On white

5.53
#7C4DCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#7C4DCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C4DCD
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C4DCD#FFFFFF#000000##FFFFFF
##7C4DCD1.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D1
Deuteranopia (green-blind)
#0067CA
Tritanopia (blue-blind)
#686A86
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7c4dcd;
/* rgb */ color: rgb(124, 77, 205);
/* oklch */ color: oklch(54.0% 0.189 296.4);
Tailwind
colors: {
  custom: {
    50: '#a781dd',
    500: '#7c4dcd',
    950: '#000000',
  },
}
SCSS
$custom: #7c4dcd;
$custom-light: #a781dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4dcd",
  "rgb": {
    "r": 124,
    "g": 77,
    "b": 205
  },
  "hsl": {
    "h": 262.031,
    "s": 56.14,
    "l": 55.294
  },
  "oklch": {
    "l": 0.53958,
    "c": 0.18915,
    "h": 296.4
  },
  "luminance": 0.14001
}

Semantic roles & 50–950 ramp

primary
#7C4DCD
secondary
#C2D6A0
accent
#DF48A8
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7C4DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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