#7D4FA6#7D4FA6

#7D4FA6 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 51.8% C 0.139 H 306.6°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#7D4FA6
RGBrgb(125, 79, 166)
HSLhsl(272, 36%, 48%)
HSVhsv(272, 52%, 65%)
CMYKcmyk(24.7%, 52.4%, 0%, 34.9%)
CIE-LABlab(42.32, 36.49, -39.73)
CIE-LCHlch(42.32, 53.94, 312.56°)
OKLaboklab(51.79% 0.0828 -0.1115)
OKLCHoklch(51.79% 0.139 306.6)
XYZxyz(18.1350, 12.7053, 37.5660)
Luminance0.1270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4FA6 #78A64F
analogous
#514FA6 #7D4FA6 #A64FA3
triadic
#7D4FA6 #A67D4F #4FA67D
tetradic
#7D4FA6 #A6514F #78A64F #4FA3A6
square
#7D4FA6 #A6514F #78A64F #4FA3A6
split-complementary
#7D4FA6 #A3A64F #4FA651
monochromatic
#3F2853 #5E3B7D #7D4FA6 #9B75BD #B99ED1

Accessibility & contrast

On white

5.93
#7D4FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7D4FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4FA6
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4FA6#FFFFFF#000000##FFFFFF
##7D4FA61.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3562A9
Deuteranopia (green-blind)
#4364A4
Tritanopia (blue-blind)
#775E73
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7d4fa6;
/* rgb */ color: rgb(125, 79, 166);
/* oklch */ color: oklch(51.8% 0.139 306.6);
Tailwind
colors: {
  custom: {
    50: '#a582c1',
    500: '#7d4fa6',
    950: '#000000',
  },
}
SCSS
$custom: #7d4fa6;
$custom-light: #a582c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4fa6",
  "rgb": {
    "r": 125,
    "g": 79,
    "b": 166
  },
  "hsl": {
    "h": 271.724,
    "s": 35.51,
    "l": 48.039
  },
  "oklch": {
    "l": 0.51792,
    "c": 0.13885,
    "h": 306.6
  },
  "luminance": 0.12705
}

Semantic roles & 50–950 ramp

primary
#7D4FA6
secondary
#A7BE93
accent
#CC5C91
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #7D4FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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