#7E478D#7E478D

#7E478D is a mid, vivid purple. Relative luminance 0.109; OKLCH L 49.2% C 0.123 H 318.7°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#7E478D
RGBrgb(126, 71, 141)
HSLhsl(287, 33%, 42%)
HSVhsv(287, 50%, 55%)
CMYKcmyk(10.6%, 49.6%, 0%, 44.7%)
CIE-LABlab(39.35, 35.54, -29.38)
CIE-LCHlch(39.35, 46.11, 320.42°)
OKLaboklab(49.19% 0.0928 -0.0813)
OKLCHoklch(49.19% 0.123 318.7)
XYZxyz(15.6645, 10.8657, 26.4663)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E478D #568D47
analogous
#5B478D #7E478D #8D4779
triadic
#7E478D #8D7E47 #478D7E
tetradic
#7E478D #8D5B47 #568D47 #47798D
square
#7E478D #8D5B47 #568D47 #47798D
split-complementary
#7E478D #798D47 #478D5B
monochromatic
#351E3C #5A3364 #7E478D #9F62B0 #B88AC4

Accessibility & contrast

On white

6.62
#7E478D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#7E478D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E478D
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E478D#FFFFFF#000000##FFFFFF
##7E478D1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B598F
Deuteranopia (green-blind)
#4B5F8B
Tritanopia (blue-blind)
#7E5163
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7e478d;
/* rgb */ color: rgb(126, 71, 141);
/* oklch */ color: oklch(49.2% 0.123 318.7);
Tailwind
colors: {
  custom: {
    50: '#a57cae',
    500: '#7e478d',
    950: '#000000',
  },
}
SCSS
$custom: #7e478d;
$custom-light: #a57cae;
$custom-dark: #000000;
JSON
{
  "hex": "#7e478d",
  "rgb": {
    "r": 126,
    "g": 71,
    "b": 141
  },
  "hsl": {
    "h": 287.143,
    "s": 33.019,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49189,
    "c": 0.12337,
    "h": 318.7
  },
  "luminance": 0.10865
}

Semantic roles & 50–950 ramp

primary
#7E478D
secondary
#8AB080
accent
#C95F75
background
#FAF7FA
surface
#F4EEF4
border
#CEC9CE
text
#0F0910
muted
#7F7B7F

Preview Lab

Preview with #7E478D

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

Preview Lab → · Contrast checker → · Palette generator →

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