#7D4E9A#7D4E9A

#7D4E9A is a mid, vivid violet. Relative luminance 0.121; OKLCH L 50.9% C 0.126 H 311.2°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#7D4E9A
RGBrgb(125, 78, 154)
HSLhsl(277, 33%, 45%)
HSVhsv(277, 49%, 60%)
CMYKcmyk(18.8%, 49.4%, 0%, 39.6%)
CIE-LABlab(41.44, 34.20, -33.95)
CIE-LCHlch(41.44, 48.19, 315.20°)
OKLaboklab(50.93% 0.0829 -0.0947)
OKLCHoklch(50.93% 0.126 311.2)
XYZxyz(17.0135, 12.1422, 32.0130)
Luminance0.1214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4E9A #6B9A4E
analogous
#574E9A #7D4E9A #9A4E91
triadic
#7D4E9A #9A7D4E #4E9A7D
tetradic
#7D4E9A #9A574E #6B9A4E #4E919A
square
#7D4E9A #9A574E #6B9A4E #4E919A
split-complementary
#7D4E9A #919A4E #4E9A57
monochromatic
#3B2549 #5C3971 #7D4E9A #9B6FB6 #B798CB

Accessibility & contrast

On white

6.13
#7D4E9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7D4E9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4E9A
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4E9A#FFFFFF#000000##FFFFFF
##7D4E9A1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5F9D
Deuteranopia (green-blind)
#496398
Tritanopia (blue-blind)
#7A5A6D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7d4e9a;
/* rgb */ color: rgb(125, 78, 154);
/* oklch */ color: oklch(50.9% 0.126 311.2);
Tailwind
colors: {
  custom: {
    50: '#a481b8',
    500: '#7d4e9a',
    950: '#000000',
  },
}
SCSS
$custom: #7d4e9a;
$custom-light: #a481b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4e9a",
  "rgb": {
    "r": 125,
    "g": 78,
    "b": 154
  },
  "hsl": {
    "h": 277.105,
    "s": 32.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.50931,
    "c": 0.12582,
    "h": 311.2
  },
  "luminance": 0.12142
}

Semantic roles & 50–950 ramp

primary
#7D4E9A
secondary
#9DB78D
accent
#C95F87
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #7D4E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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