#7C4DC7#7C4DC7

#7C4DC7 is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.5% C 0.182 H 297.7°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#7C4DC7
RGBrgb(124, 77, 199)
HSLhsl(263, 52%, 54%)
HSVhsv(263, 61%, 78%)
CMYKcmyk(37.7%, 61.3%, 0%, 22%)
CIE-LABlab(43.82, 45.72, -56.67)
CIE-LCHlch(43.82, 72.81, 308.89°)
OKLaboklab(53.53% 0.0845 -0.1612)
OKLCHoklch(53.53% 0.182 297.7)
XYZxyz(21.2723, 13.7160, 55.5485)
Luminance0.1372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4DC7 #98C74D
analogous
#4D5BC7 #7C4DC7 #B94DC7
triadic
#7C4DC7 #C77C4D #4DC77C
tetradic
#7C4DC7 #C74D5B #98C74D #4DC7B9
square
#7C4DC7 #C74D5B #98C74D #4DC7B9
split-complementary
#7C4DC7 #C7B94D #5BC74D
monochromatic
#442575 #5F33A3 #7C4DC7 #9E7CD6 #C1AAE4

Accessibility & contrast

On white

5.61
#7C4DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#7C4DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C4DC7
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C4DC7#FFFFFF#000000##FFFFFF
##7C4DC71.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CB
Deuteranopia (green-blind)
#1566C4
Tritanopia (blue-blind)
#6A6883
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7c4dc7;
/* rgb */ color: rgb(124, 77, 199);
/* oklch */ color: oklch(53.5% 0.182 297.7);
Tailwind
colors: {
  custom: {
    50: '#a781d9',
    500: '#7c4dc7',
    950: '#000000',
  },
}
SCSS
$custom: #7c4dc7;
$custom-light: #a781d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4dc7",
  "rgb": {
    "r": 124,
    "g": 77,
    "b": 199
  },
  "hsl": {
    "h": 263.115,
    "s": 52.137,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53529,
    "c": 0.18197,
    "h": 297.7
  },
  "luminance": 0.13716
}

Semantic roles & 50–950 ramp

primary
#7C4DC7
secondary
#BED29E
accent
#DC4CA4
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7C4DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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