#7D4C8A#7D4C8A

#7D4C8A is a mid, moderate purple. Relative luminance 0.114; OKLCH L 49.7% C 0.110 H 319.0°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#7D4C8A
RGBrgb(125, 76, 138)
HSLhsl(287, 29%, 42%)
HSVhsv(287, 45%, 54%)
CMYKcmyk(9.4%, 44.9%, 0%, 45.9%)
CIE-LABlab(40.19, 31.74, -26.26)
CIE-LCHlch(40.19, 41.19, 320.40°)
OKLaboklab(49.73% 0.0833 -0.0724)
OKLCHoklch(49.73% 0.11 319)
XYZxyz(15.6287, 11.3643, 25.4101)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4C8A #598A4C
analogous
#5E4C8A #7D4C8A #8A4C78
triadic
#7D4C8A #8A7D4C #4C8A7D
tetradic
#7D4C8A #8A5E4C #598A4C #4C788A
square
#7D4C8A #8A5E4C #598A4C #4C788A
split-complementary
#7D4C8A #788A4C #4C8A5E
monochromatic
#36213B #593663 #7D4C8A #9D68AC #B78FC1

Accessibility & contrast

On white

6.42
#7D4C8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#7D4C8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4C8A
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4C8A#FFFFFF#000000##FFFFFF
##7D4C8A1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425B8C
Deuteranopia (green-blind)
#506088
Tritanopia (blue-blind)
#7D5464
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7d4c8a;
/* rgb */ color: rgb(125, 76, 138);
/* oklch */ color: oklch(49.7% 0.110 319.0);
Tailwind
colors: {
  custom: {
    50: '#a47fac',
    500: '#7d4c8a',
    950: '#000000',
  },
}
SCSS
$custom: #7d4c8a;
$custom-light: #a47fac;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4c8a",
  "rgb": {
    "r": 125,
    "g": 76,
    "b": 138
  },
  "hsl": {
    "h": 287.419,
    "s": 28.972,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49734,
    "c": 0.11039,
    "h": 319
  },
  "luminance": 0.11364
}

Semantic roles & 50–950 ramp

primary
#7D4C8A
secondary
#8DAE84
accent
#C56377
background
#FAF7FA
surface
#F4EEF4
border
#CEC9CE
text
#0F0A10
muted
#7F7C7F

Preview Lab

Preview with #7D4C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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