#7D4ED4#7D4ED4

#7D4ED4 is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.7% C 0.196 H 295.3°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#7D4ED4
RGBrgb(125, 78, 212)
HSLhsl(261, 61%, 57%)
HSVhsv(261, 63%, 83%)
CMYKcmyk(41%, 63.2%, 0%, 16.9%)
CIE-LABlab(45.03, 48.81, -62.20)
CIE-LCHlch(45.03, 79.06, 308.12°)
OKLaboklab(54.71% 0.0838 -0.1774)
OKLCHoklch(54.71% 0.196 295.3)
XYZxyz(23.0624, 14.5617, 63.8702)
Luminance0.1456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4ED4 #A5D44E
analogous
#4E62D4 #7D4ED4 #C04ED4
triadic
#7D4ED4 #D47D4E #4ED47D
tetradic
#7D4ED4 #D44E62 #A5D44E #4ED4C0
square
#7D4ED4 #D44E62 #A5D44E #4ED4C0
split-complementary
#7D4ED4 #D4C04E #62D44E
monochromatic
#452187 #5E2DB8 #7D4ED4 #A17FE0 #C5B0EC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D4ED4#FFFFFF#000000##FFFFFF
##7D4ED41.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)
#006CD8
Deuteranopia (green-blind)
#0069D1
Tritanopia (blue-blind)
#666D8A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7d4ed4;
/* rgb */ color: rgb(125, 78, 212);
/* oklch */ color: oklch(54.7% 0.196 295.3);
Tailwind
colors: {
  custom: {
    50: '#a982e2',
    500: '#7d4ed4',
    950: '#000000',
  },
}
SCSS
$custom: #7d4ed4;
$custom-light: #a982e2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4ed4",
  "rgb": {
    "r": 125,
    "g": 78,
    "b": 212
  },
  "hsl": {
    "h": 261.045,
    "s": 60.909,
    "l": 56.863
  },
  "oklch": {
    "l": 0.54713,
    "c": 0.19621,
    "h": 295.3
  },
  "luminance": 0.14562
}

Semantic roles & 50–950 ramp

primary
#7D4ED4
secondary
#C7DAA4
accent
#E444AC
background
#FAF8FE
surface
#F4EFFC
border
#CECAD5
text
#100B15
muted
#7F7C84

Preview Lab

Preview with #7D4ED4

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

Preview Lab → · Contrast checker → · Palette generator →

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