#7C4DD4#7C4DD4

#7C4DD4 is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.5% C 0.197 H 295.0°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#7C4DD4
RGBrgb(124, 77, 212)
HSLhsl(261, 61%, 57%)
HSVhsv(261, 64%, 83%)
CMYKcmyk(41.5%, 63.7%, 0%, 16.9%)
CIE-LABlab(44.72, 49.14, -62.70)
CIE-LCHlch(44.72, 79.66, 308.09°)
OKLaboklab(54.47% 0.0835 -0.1789)
OKLCHoklch(54.47% 0.197 295)
XYZxyz(22.8466, 14.3458, 63.8399)
Luminance0.1435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4DD4 #A5D44D
analogous
#4D62D4 #7C4DD4 #C04DD4
triadic
#7C4DD4 #D47C4D #4DD47C
tetradic
#7C4DD4 #D44D62 #A5D44D #4DD4C0
square
#7C4DD4 #D44D62 #A5D44D #4DD4C0
split-complementary
#7C4DD4 #D4C04D #62D44D
monochromatic
#442086 #5D2CB7 #7C4DD4 #A07EE0 #C5B0EC

Accessibility & contrast

On white

5.43
#7C4DD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#7C4DD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C4DD4
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C4DD4#FFFFFF#000000##FFFFFF
##7C4DD41.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD8
Deuteranopia (green-blind)
#0068D1
Tritanopia (blue-blind)
#656C8A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7c4dd4;
/* rgb */ color: rgb(124, 77, 212);
/* oklch */ color: oklch(54.5% 0.197 295.0);
Tailwind
colors: {
  custom: {
    50: '#a881e2',
    500: '#7c4dd4',
    950: '#000000',
  },
}
SCSS
$custom: #7c4dd4;
$custom-light: #a881e2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4dd4",
  "rgb": {
    "r": 124,
    "g": 77,
    "b": 212
  },
  "hsl": {
    "h": 260.889,
    "s": 61.086,
    "l": 56.667
  },
  "oklch": {
    "l": 0.54469,
    "c": 0.19745,
    "h": 295
  },
  "luminance": 0.14346
}

Semantic roles & 50–950 ramp

primary
#7C4DD4
secondary
#C7DAA3
accent
#E444AC
background
#FAF8FE
surface
#F4EFFC
border
#CECAD5
text
#100A15
muted
#7F7C84

Preview Lab

Preview with #7C4DD4

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

Preview Lab → · Contrast checker → · Palette generator →

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