#7D4ABE#7D4ABE

#7D4ABE is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.6% C 0.176 H 300.8°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#7D4ABE
RGBrgb(125, 74, 190)
HSLhsl(266, 47%, 52%)
HSVhsv(266, 61%, 75%)
CMYKcmyk(34.2%, 61.1%, 0%, 25.5%)
CIE-LABlab(42.73, 45.25, -53.20)
CIE-LCHlch(42.73, 69.84, 310.38°)
OKLaboklab(52.57% 0.0898 -0.1509)
OKLCHoklch(52.57% 0.176 300.8)
XYZxyz(20.1983, 12.9751, 50.1455)
Luminance0.1298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4ABE #8BBE4A
analogous
#4A51BE #7D4ABE #B74ABE
triadic
#7D4ABE #BE7D4A #4ABE7D
tetradic
#7D4ABE #BE4A51 #8BBE4A #4ABEB7
square
#7D4ABE #BE4A51 #8BBE4A #4ABEB7
split-complementary
#7D4ABE #BEB74A #51BE4A
monochromatic
#432568 #603695 #7D4ABE #9D77CE #BEA4DE

Accessibility & contrast

On white

5.84
#7D4ABE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#7D4ABE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4ABE
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4ABE#FFFFFF#000000##FFFFFF
##7D4ABE1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C2
Deuteranopia (green-blind)
#2364BB
Tritanopia (blue-blind)
#6F637D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7d4abe;
/* rgb */ color: rgb(125, 74, 190);
/* oklch */ color: oklch(52.6% 0.176 300.8);
Tailwind
colors: {
  custom: {
    50: '#a77fd2',
    500: '#7d4abe',
    950: '#000000',
  },
}
SCSS
$custom: #7d4abe;
$custom-light: #a77fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4abe",
  "rgb": {
    "r": 125,
    "g": 74,
    "b": 190
  },
  "hsl": {
    "h": 266.379,
    "s": 47.154,
    "l": 51.765
  },
  "oklch": {
    "l": 0.52565,
    "c": 0.17563,
    "h": 300.8
  },
  "luminance": 0.12975
}

Semantic roles & 50–950 ramp

primary
#7D4ABE
secondary
#B5CB98
accent
#D7519C
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7D4ABE

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

Preview Lab → · Contrast checker → · Palette generator →

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