#7D4D97#7D4D97

#7D4D97 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 50.6% C 0.124 H 312.6°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#7D4D97
RGBrgb(125, 77, 151)
HSLhsl(279, 32%, 45%)
HSVhsv(279, 49%, 59%)
CMYKcmyk(17.2%, 49%, 0%, 40.8%)
CIE-LABlab(41.06, 34.07, -32.75)
CIE-LCHlch(41.06, 47.26, 316.13°)
OKLaboklab(50.6% 0.084 -0.0912)
OKLCHoklch(50.6% 0.124 312.6)
XYZxyz(16.6963, 11.9025, 30.6900)
Luminance0.1190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4D97 #67974D
analogous
#584D97 #7D4D97 #974D8C
triadic
#7D4D97 #977D4D #4D977D
tetradic
#7D4D97 #97584D #67974D #4D8C97
square
#7D4D97 #97584D #67974D #4D8C97
split-complementary
#7D4D97 #8C974D #4D9758
monochromatic
#3A2446 #5B386E #7D4D97 #9B6DB4 #B795C9

Accessibility & contrast

On white

6.21
#7D4D97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7D4D97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4D97
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4D97#FFFFFF#000000##FFFFFF
##7D4D971.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5E9A
Deuteranopia (green-blind)
#4A6295
Tritanopia (blue-blind)
#7B586B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7d4d97;
/* rgb */ color: rgb(125, 77, 151);
/* oklch */ color: oklch(50.6% 0.124 312.6);
Tailwind
colors: {
  custom: {
    50: '#a480b6',
    500: '#7d4d97',
    950: '#000000',
  },
}
SCSS
$custom: #7d4d97;
$custom-light: #a480b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4d97",
  "rgb": {
    "r": 125,
    "g": 77,
    "b": 151
  },
  "hsl": {
    "h": 278.919,
    "s": 32.456,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50597,
    "c": 0.12394,
    "h": 312.6
  },
  "luminance": 0.11902
}

Semantic roles & 50–950 ramp

primary
#7D4D97
secondary
#99B68A
accent
#C95F84
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #7D4D97

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

Preview Lab → · Contrast checker → · Palette generator →

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