#7C4DD2#7C4DD2

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

Color values

HEX#7C4DD2
RGBrgb(124, 77, 210)
HSLhsl(261, 60%, 56%)
HSVhsv(261, 63%, 82%)
CMYKcmyk(41%, 63.3%, 0%, 17.6%)
CIE-LABlab(44.58, 48.61, -61.78)
CIE-LCHlch(44.58, 78.61, 308.20°)
OKLaboklab(54.32% 0.0837 -0.1762)
OKLCHoklch(54.32% 0.195 295.4)
XYZxyz(22.5958, 14.2455, 62.5194)
Luminance0.1425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4DD2 #A3D24D
analogous
#4D61D2 #7C4DD2 #BF4DD2
triadic
#7C4DD2 #D27C4D #4DD27C
tetradic
#7C4DD2 #D24D61 #A3D24D #4DD2BF
square
#7C4DD2 #D24D61 #A3D24D #4DD2BF
split-complementary
#7C4DD2 #D2BF4D #61D24D
monochromatic
#442183 #5D2EB4 #7C4DD2 #A07EDE #C4AFEB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C4DD2#FFFFFF#000000##FFFFFF
##7C4DD21.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)
#006AD6
Deuteranopia (green-blind)
#0067CF
Tritanopia (blue-blind)
#666B88
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7c4dd2;
/* rgb */ color: rgb(124, 77, 210);
/* oklch */ color: oklch(54.3% 0.195 295.4);
Tailwind
colors: {
  custom: {
    50: '#a881e1',
    500: '#7c4dd2',
    950: '#000000',
  },
}
SCSS
$custom: #7c4dd2;
$custom-light: #a881e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4dd2",
  "rgb": {
    "r": 124,
    "g": 77,
    "b": 210
  },
  "hsl": {
    "h": 261.203,
    "s": 59.641,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54322,
    "c": 0.19509,
    "h": 295.4
  },
  "luminance": 0.14246
}

Semantic roles & 50–950 ramp

primary
#7C4DD2
secondary
#C5D9A2
accent
#E345AB
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7C4DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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