#7D4DC7#7D4DC7

#7D4DC7 is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.6% C 0.182 H 298.1°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#7D4DC7
RGBrgb(125, 77, 199)
HSLhsl(264, 52%, 54%)
HSVhsv(264, 61%, 78%)
CMYKcmyk(37.2%, 61.3%, 0%, 22%)
CIE-LABlab(43.93, 45.94, -56.48)
CIE-LCHlch(43.93, 72.81, 309.12°)
OKLaboklab(53.63% 0.0858 -0.1606)
OKLCHoklch(53.63% 0.182 298.1)
XYZxyz(21.4175, 13.7910, 55.5553)
Luminance0.1379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4DC7 #97C74D
analogous
#4D5AC7 #7D4DC7 #BA4DC7
triadic
#7D4DC7 #C77D4D #4DC77D
tetradic
#7D4DC7 #C74D5A #97C74D #4DC7BA
square
#7D4DC7 #C74D5A #97C74D #4DC7BA
split-complementary
#7D4DC7 #C7BA4D #5AC74D
monochromatic
#442575 #5F33A3 #7D4DC7 #9F7CD6 #C1AAE4

Accessibility & contrast

On white

5.59
#7D4DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#7D4DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4DC7
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4DC7#FFFFFF#000000##FFFFFF
##7D4DC71.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d4dc7;
/* rgb */ color: rgb(125, 77, 199);
/* oklch */ color: oklch(53.6% 0.182 298.1);
Tailwind
colors: {
  custom: {
    50: '#a781d9',
    500: '#7d4dc7',
    950: '#000000',
  },
}
SCSS
$custom: #7d4dc7;
$custom-light: #a781d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4dc7",
  "rgb": {
    "r": 125,
    "g": 77,
    "b": 199
  },
  "hsl": {
    "h": 263.607,
    "s": 52.137,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53633,
    "c": 0.18211,
    "h": 298.1
  },
  "luminance": 0.13791
}

Semantic roles & 50–950 ramp

primary
#7D4DC7
secondary
#BDD29E
accent
#DC4CA3
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7D4DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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