#7E4780#7E4780

#7E4780 is a mid, moderate purple. Relative luminance 0.105; OKLCH L 48.5% C 0.109 H 325.8°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#7E4780
RGBrgb(126, 71, 128)
HSLhsl(298, 29%, 39%)
HSVhsv(298, 45%, 50%)
CMYKcmyk(1.6%, 44.5%, 0%, 49.8%)
CIE-LABlab(38.73, 32.82, -22.41)
CIE-LCHlch(38.73, 39.74, 325.68°)
OKLaboklab(48.52% 0.0904 -0.0613)
OKLCHoklch(48.52% 0.109 325.8)
XYZxyz(14.7534, 10.5013, 21.6677)
Luminance0.1050 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4780 #498047
analogous
#624780 #7E4780 #804766
triadic
#7E4780 #807E47 #47807E
tetradic
#7E4780 #806247 #498047 #476680
square
#7E4780 #806247 #498047 #476680
split-complementary
#7E4780 #668047 #478062
monochromatic
#311B31 #573159 #7E4780 #A35EA6 #BA86BC

Accessibility & contrast

On white

6.77
#7E4780 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7E4780 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4780
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4780#FFFFFF#000000##FFFFFF
##7E47801.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425782
Deuteranopia (green-blind)
#515E7E
Tritanopia (blue-blind)
#814D5D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7e4780;
/* rgb */ color: rgb(126, 71, 128);
/* oklch */ color: oklch(48.5% 0.109 325.8);
Tailwind
colors: {
  custom: {
    50: '#a57ca5',
    500: '#7e4780',
    950: '#000000',
  },
}
SCSS
$custom: #7e4780;
$custom-light: #a57ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4780",
  "rgb": {
    "r": 126,
    "g": 71,
    "b": 128
  },
  "hsl": {
    "h": 297.895,
    "s": 28.643,
    "l": 39.02
  },
  "oklch": {
    "l": 0.48518,
    "c": 0.10921,
    "h": 325.8
  },
  "luminance": 0.10501
}

Semantic roles & 50–950 ramp

primary
#7E4780
secondary
#7DA77B
accent
#C56366
background
#FAF7FA
surface
#F4EEF4
border
#CEC9CE
text
#0F090F
muted
#7F7B7F

Preview Lab

Preview with #7E4780

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

Preview Lab → · Contrast checker → · Palette generator →

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