#7C4D8A#7C4D8A

#7C4D8A is a mid, moderate purple. Relative luminance 0.114; OKLCH L 49.8% C 0.108 H 318.2°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#7C4D8A
RGBrgb(124, 77, 138)
HSLhsl(286, 28%, 42%)
HSVhsv(286, 44%, 54%)
CMYKcmyk(10.1%, 44.2%, 0%, 45.9%)
CIE-LABlab(40.29, 30.84, -26.10)
CIE-LCHlch(40.29, 40.41, 319.75°)
OKLaboklab(49.79% 0.0805 -0.072)
OKLCHoklch(49.79% 0.108 318.2)
XYZxyz(15.5529, 11.4283, 25.4264)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4D8A #5B8A4D
analogous
#5E4D8A #7C4D8A #8A4D79
triadic
#7C4D8A #8A7C4D #4D8A7C
tetradic
#7C4D8A #8A5E4D #5B8A4D #4D798A
square
#7C4D8A #8A5E4D #5B8A4D #4D798A
split-complementary
#7C4D8A #798A4D #4D8A5E
monochromatic
#35213B #593763 #7C4D8A #9C69AB #B690C1

Accessibility & contrast

On white

6.39
#7C4D8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#7C4D8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C4D8A
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C4D8A#FFFFFF#000000##FFFFFF
##7C4D8A1.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435C8C
Deuteranopia (green-blind)
#506188
Tritanopia (blue-blind)
#7C5565
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7c4d8a;
/* rgb */ color: rgb(124, 77, 138);
/* oklch */ color: oklch(49.8% 0.108 318.2);
Tailwind
colors: {
  custom: {
    50: '#a380ac',
    500: '#7c4d8a',
    950: '#000000',
  },
}
SCSS
$custom: #7c4d8a;
$custom-light: #a380ac;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4d8a",
  "rgb": {
    "r": 124,
    "g": 77,
    "b": 138
  },
  "hsl": {
    "h": 286.23,
    "s": 28.372,
    "l": 42.157
  },
  "oklch": {
    "l": 0.49785,
    "c": 0.10798,
    "h": 318.2
  },
  "luminance": 0.11428
}

Semantic roles & 50–950 ramp

primary
#7C4D8A
secondary
#8EAE85
accent
#C5637A
background
#FAF7FA
surface
#F4EEF4
border
#CEC9CE
text
#0F0A10
muted
#7F7C7F

Preview Lab

Preview with #7C4D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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