#7A5478#7A5478

#7A5478 is a mid, moderate purple. Relative luminance 0.118; OKLCH L 50.0% C 0.073 H 328.4°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#7A5478
RGBrgb(122, 84, 120)
HSLhsl(303, 18%, 40%)
HSVhsv(303, 31%, 48%)
CMYKcmyk(0%, 31.1%, 1.6%, 52.2%)
CIE-LABlab(40.95, 22.21, -14.12)
CIE-LCHlch(40.95, 26.32, 327.56°)
OKLaboklab(49.97% 0.0619 -0.0381)
OKLCHoklch(49.97% 0.073 328.4)
XYZxyz(14.5862, 11.8348, 19.2817)
Luminance0.1183 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5478 #547A56
analogous
#69547A #7A5478 #7A5465
triadic
#7A5478 #787A54 #54787A
tetradic
#7A5478 #7A6954 #547A56 #54657A
square
#7A5478 #7A6954 #547A56 #54657A
split-complementary
#7A5478 #657A54 #547A69
monochromatic
#322231 #563B54 #7A5478 #9C6F9A #B593B3

Accessibility & contrast

On white

6.24
#7A5478 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#7A5478 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5478
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5478#FFFFFF#000000##FFFFFF
##7A54781.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#525D79
Deuteranopia (green-blind)
#5B6277
Tritanopia (blue-blind)
#7D5761
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7a5478;
/* rgb */ color: rgb(122, 84, 120);
/* oklch */ color: oklch(50.0% 0.073 328.4);
Tailwind
colors: {
  custom: {
    50: '#a1849f',
    500: '#7a5478',
    950: '#000000',
  },
}
SCSS
$custom: #7a5478;
$custom-light: #a1849f;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5478",
  "rgb": {
    "r": 122,
    "g": 84,
    "b": 120
  },
  "hsl": {
    "h": 303.158,
    "s": 18.447,
    "l": 40.392
  },
  "oklch": {
    "l": 0.49974,
    "c": 0.07271,
    "h": 328.4
  },
  "luminance": 0.11834
}

Semantic roles & 50–950 ramp

primary
#7A5478
secondary
#87A389
accent
#BB716D
background
#F9F8F9
surface
#F2EFF2
border
#CCCACC
text
#0F0B0E
muted
#7E7C7E

Preview Lab

Preview with #7A5478

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

Preview Lab → · Contrast checker → · Palette generator →

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