#7C478D#7C478D

#7C478D is a mid, vivid purple. Relative luminance 0.107; OKLCH L 48.9% C 0.122 H 317.5°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#7C478D
RGBrgb(124, 71, 141)
HSLhsl(285, 33%, 42%)
HSVhsv(285, 50%, 55%)
CMYKcmyk(12.1%, 49.6%, 0%, 44.7%)
CIE-LABlab(39.10, 34.93, -29.80)
CIE-LCHlch(39.10, 45.92, 319.53°)
OKLaboklab(48.94% 0.0902 -0.0826)
OKLCHoklch(48.94% 0.122 317.5)
XYZxyz(15.3725, 10.7152, 26.4526)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C478D #588D47
analogous
#59478D #7C478D #8D477B
triadic
#7C478D #8D7C47 #478D7C
tetradic
#7C478D #8D5947 #588D47 #477B8D
square
#7C478D #8D5947 #588D47 #477B8D
split-complementary
#7C478D #7B8D47 #478D59
monochromatic
#341E3C #583364 #7C478D #9D62B0 #B68AC4

Accessibility & contrast

On white

6.68
#7C478D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#7C478D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C478D
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C478D#FFFFFF#000000##FFFFFF
##7C478D1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A598F
Deuteranopia (green-blind)
#495E8B
Tritanopia (blue-blind)
#7C5163
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7c478d;
/* rgb */ color: rgb(124, 71, 141);
/* oklch */ color: oklch(48.9% 0.122 317.5);
Tailwind
colors: {
  custom: {
    50: '#a37cae',
    500: '#7c478d',
    950: '#000000',
  },
}
SCSS
$custom: #7c478d;
$custom-light: #a37cae;
$custom-dark: #000000;
JSON
{
  "hex": "#7c478d",
  "rgb": {
    "r": 124,
    "g": 71,
    "b": 141
  },
  "hsl": {
    "h": 285.429,
    "s": 33.019,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48942,
    "c": 0.12231,
    "h": 317.5
  },
  "luminance": 0.10715
}

Semantic roles & 50–950 ramp

primary
#7C478D
secondary
#8CB080
accent
#C95F79
background
#FAF7FA
surface
#F4EEF4
border
#CEC9CE
text
#0F0910
muted
#7F7B7F

Preview Lab

Preview with #7C478D

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

Preview Lab → · Contrast checker → · Palette generator →

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