#7D4ED8#7D4ED8

#7D4ED8 is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.0% C 0.201 H 294.5°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#7D4ED8
RGBrgb(125, 78, 216)
HSLhsl(260, 64%, 58%)
HSVhsv(260, 64%, 85%)
CMYKcmyk(42.1%, 63.9%, 0%, 15.3%)
CIE-LABlab(45.31, 49.87, -64.03)
CIE-LCHlch(45.31, 81.16, 307.91°)
OKLaboklab(55.01% 0.0834 -0.1828)
OKLCHoklch(55.01% 0.201 294.5)
XYZxyz(23.5732, 14.7660, 66.5606)
Luminance0.1477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4ED8 #A9D84E
analogous
#4E64D8 #7D4ED8 #C24ED8
triadic
#7D4ED8 #D87D4E #4ED87D
tetradic
#7D4ED8 #D84E64 #A9D84E #4ED8C2
square
#7D4ED8 #D84E64 #A9D84E #4ED8C2
split-complementary
#7D4ED8 #D8C24E #64D84E
monochromatic
#441F8D #5D2ABF #7D4ED8 #A280E3 #C7B2EE

Accessibility & contrast

On white

5.31
#7D4ED8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#7D4ED8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4ED8
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4ED8#FFFFFF#000000##FFFFFF
##7D4ED81.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDC
Deuteranopia (green-blind)
#0069D5
Tritanopia (blue-blind)
#656E8C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7d4ed8;
/* rgb */ color: rgb(125, 78, 216);
/* oklch */ color: oklch(55.0% 0.201 294.5);
Tailwind
colors: {
  custom: {
    50: '#a982e5',
    500: '#7d4ed8',
    950: '#000000',
  },
}
SCSS
$custom: #7d4ed8;
$custom-light: #a982e5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4ed8",
  "rgb": {
    "r": 125,
    "g": 78,
    "b": 216
  },
  "hsl": {
    "h": 260.435,
    "s": 63.889,
    "l": 57.647
  },
  "oklch": {
    "l": 0.55008,
    "c": 0.20093,
    "h": 294.5
  },
  "luminance": 0.14767
}

Semantic roles & 50–950 ramp

primary
#7D4ED8
secondary
#CADDA5
accent
#E741AE
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7D4ED8

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

Preview Lab → · Contrast checker → · Palette generator →

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