#7C5178#7C5178

#7C5178 is a mid, moderate purple. Relative luminance 0.115; OKLCH L 49.6% C 0.080 H 330.0°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#7C5178
RGBrgb(124, 81, 120)
HSLhsl(306, 21%, 40%)
HSVhsv(306, 35%, 49%)
CMYKcmyk(0%, 34.7%, 3.2%, 51.4%)
CIE-LABlab(40.45, 24.72, -14.86)
CIE-LCHlch(40.45, 28.84, 328.99°)
OKLaboklab(49.65% 0.0695 -0.0401)
OKLCHoklch(49.65% 0.08 330)
XYZxyz(14.6445, 11.5266, 19.2191)
Luminance0.1153 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5178 #517C55
analogous
#6A517C #7C5178 #7C5163
triadic
#7C5178 #787C51 #51787C
tetradic
#7C5178 #7C6A51 #517C55 #51637C
square
#7C5178 #7C6A51 #517C55 #51637C
split-complementary
#7C5178 #637C51 #517C6A
monochromatic
#322130 #573954 #7C5178 #9F6C9A #B791B3

Accessibility & contrast

On white

6.35
#7C5178 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#7C5178 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C5178
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5178#FFFFFF#000000##FFFFFF
##7C51781.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F5C79
Deuteranopia (green-blind)
#5A6177
Tritanopia (blue-blind)
#7F545F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7c5178;
/* rgb */ color: rgb(124, 81, 120);
/* oklch */ color: oklch(49.6% 0.080 330.0);
Tailwind
colors: {
  custom: {
    50: '#a2829f',
    500: '#7c5178',
    950: '#000000',
  },
}
SCSS
$custom: #7c5178;
$custom-light: #a2829f;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5178",
  "rgb": {
    "r": 124,
    "g": 81,
    "b": 120
  },
  "hsl": {
    "h": 305.581,
    "s": 20.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.49649,
    "c": 0.08021,
    "h": 330
  },
  "luminance": 0.11526
}

Semantic roles & 50–950 ramp

primary
#7C5178
secondary
#85A488
accent
#BE726A
background
#FAF8F9
surface
#F4EFF2
border
#CECACC
text
#0F0A0E
muted
#7F7C7E

Preview Lab

Preview with #7C5178

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

Preview Lab → · Contrast checker → · Palette generator →

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