#7D4FA5#7D4FA5

#7D4FA5 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 51.7% C 0.138 H 306.9°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#7D4FA5
RGBrgb(125, 79, 165)
HSLhsl(272, 35%, 48%)
HSVhsv(272, 52%, 65%)
CMYKcmyk(24.2%, 52.1%, 0%, 35.3%)
CIE-LABlab(42.26, 36.24, -39.22)
CIE-LCHlch(42.26, 53.41, 312.74°)
OKLaboklab(51.73% 0.0827 -0.11)
OKLCHoklch(51.73% 0.138 306.9)
XYZxyz(18.0436, 12.6687, 37.0848)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4FA5 #77A54F
analogous
#524FA5 #7D4FA5 #A54FA2
triadic
#7D4FA5 #A57D4F #4FA57D
tetradic
#7D4FA5 #A5524F #77A54F #4FA2A5
square
#7D4FA5 #A5524F #77A54F #4FA2A5
split-complementary
#7D4FA5 #A2A54F #4FA552
monochromatic
#3E2752 #5E3B7C #7D4FA5 #9B75BD #B99ED1

Accessibility & contrast

On white

5.94
#7D4FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#7D4FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4FA5
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4FA5#FFFFFF#000000##FFFFFF
##7D4FA51.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3662A8
Deuteranopia (green-blind)
#4364A3
Tritanopia (blue-blind)
#775E72
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7d4fa5;
/* rgb */ color: rgb(125, 79, 165);
/* oklch */ color: oklch(51.7% 0.138 306.9);
Tailwind
colors: {
  custom: {
    50: '#a582c0',
    500: '#7d4fa5',
    950: '#000000',
  },
}
SCSS
$custom: #7d4fa5;
$custom-light: #a582c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4fa5",
  "rgb": {
    "r": 125,
    "g": 79,
    "b": 165
  },
  "hsl": {
    "h": 272.093,
    "s": 35.246,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51733,
    "c": 0.13762,
    "h": 306.9
  },
  "luminance": 0.12669
}

Semantic roles & 50–950 ramp

primary
#7D4FA5
secondary
#A6BD92
accent
#CB5D90
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #7D4FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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