#7D4ECC#7D4ECC

#7D4ECC is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.1% C 0.187 H 296.9°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#7D4ECC
RGBrgb(125, 78, 204)
HSLhsl(262, 55%, 55%)
HSVhsv(262, 62%, 80%)
CMYKcmyk(38.7%, 61.8%, 0%, 20%)
CIE-LABlab(44.47, 46.70, -58.50)
CIE-LCHlch(44.47, 74.85, 308.60°)
OKLaboklab(54.14% 0.0844 -0.1665)
OKLCHoklch(54.14% 0.187 296.9)
XYZxyz(22.0781, 14.1680, 58.6865)
Luminance0.1417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4ECC #9DCC4E
analogous
#4E5ECC #7D4ECC #BC4ECC
triadic
#7D4ECC #CC7D4E #4ECC7D
tetradic
#7D4ECC #CC4E5E #9DCC4E #4ECCBC
square
#7D4ECC #CC4E5E #9DCC4E #4ECCBC
split-complementary
#7D4ECC #CCBC4E #5ECC4E
monochromatic
#45247C #5F31AB #7D4ECC #A07EDA #C3ADE7

Accessibility & contrast

On white

5.48
#7D4ECC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#7D4ECC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4ECC
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4ECC#FFFFFF#000000##FFFFFF
##7D4ECC1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD0
Deuteranopia (green-blind)
#0B68C9
Tritanopia (blue-blind)
#6A6A86
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7d4ecc;
/* rgb */ color: rgb(125, 78, 204);
/* oklch */ color: oklch(54.1% 0.187 296.9);
Tailwind
colors: {
  custom: {
    50: '#a882dc',
    500: '#7d4ecc',
    950: '#000000',
  },
}
SCSS
$custom: #7d4ecc;
$custom-light: #a882dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4ecc",
  "rgb": {
    "r": 125,
    "g": 78,
    "b": 204
  },
  "hsl": {
    "h": 262.381,
    "s": 55.263,
    "l": 55.294
  },
  "oklch": {
    "l": 0.54135,
    "c": 0.18669,
    "h": 296.9
  },
  "luminance": 0.14168
}

Semantic roles & 50–950 ramp

primary
#7D4ECC
secondary
#C2D5A1
accent
#DF49A7
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7D4ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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