#7C4DD8#7C4DD8

#7C4DD8 is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 54.8% C 0.202 H 294.3°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#7C4DD8
RGBrgb(124, 77, 216)
HSLhsl(260, 64%, 57%)
HSVhsv(260, 64%, 85%)
CMYKcmyk(42.6%, 64.4%, 0%, 15.3%)
CIE-LABlab(45.01, 50.20, -64.52)
CIE-LCHlch(45.01, 81.75, 307.89°)
OKLaboklab(54.77% 0.0832 -0.1843)
OKLCHoklch(54.77% 0.202 294.3)
XYZxyz(23.3574, 14.5501, 66.5302)
Luminance0.1455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4DD8 #A9D84D
analogous
#4D63D8 #7C4DD8 #C24DD8
triadic
#7C4DD8 #D87C4D #4DD87C
tetradic
#7C4DD8 #D84D63 #A9D84D #4DD8C2
square
#7C4DD8 #D84D63 #A9D84D #4DD8C2
split-complementary
#7C4DD8 #D8C24D #63D84D
monochromatic
#441F8C #5C2ABE #7C4DD8 #A17FE3 #C6B1EE

Accessibility & contrast

On white

5.37
#7C4DD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7C4DD8
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C4DD8#FFFFFF#000000##FFFFFF
##7C4DD81.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDC
Deuteranopia (green-blind)
#0068D5
Tritanopia (blue-blind)
#636E8C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7c4dd8;
/* rgb */ color: rgb(124, 77, 216);
/* oklch */ color: oklch(54.8% 0.202 294.3);
Tailwind
colors: {
  custom: {
    50: '#a881e5',
    500: '#7c4dd8',
    950: '#000000',
  },
}
SCSS
$custom: #7c4dd8;
$custom-light: #a881e5;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4dd8",
  "rgb": {
    "r": 124,
    "g": 77,
    "b": 216
  },
  "hsl": {
    "h": 260.288,
    "s": 64.055,
    "l": 57.451
  },
  "oklch": {
    "l": 0.54767,
    "c": 0.20216,
    "h": 294.3
  },
  "luminance": 0.14551
}

Semantic roles & 50–950 ramp

primary
#7C4DD8
secondary
#C9DCA4
accent
#E741AF
background
#FAF8FE
surface
#F4EFFC
border
#CECAD5
text
#100A16
muted
#7F7C84

Preview Lab

Preview with #7C4DD8

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

Preview Lab → · Contrast checker → · Palette generator →

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