#7E517A#7E517A

#7E517A is a mid, moderate purple. Relative luminance 0.117; OKLCH L 50.0% C 0.084 H 329.9°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#7E517A
RGBrgb(126, 81, 122)
HSLhsl(305, 22%, 41%)
HSVhsv(305, 36%, 49%)
CMYKcmyk(0%, 35.7%, 3.2%, 50.6%)
CIE-LABlab(40.78, 25.82, -15.57)
CIE-LCHlch(40.78, 30.15, 328.92°)
OKLaboklab(49.98% 0.0726 -0.0421)
OKLCHoklch(49.98% 0.084 329.9)
XYZxyz(15.0592, 11.7263, 19.8787)
Luminance0.1173 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E517A #517E55
analogous
#6B517E #7E517A #7E5163
triadic
#7E517A #7A7E51 #517A7E
tetradic
#7E517A #7E6B51 #517E55 #51637E
square
#7E517A #7E6B51 #517E55 #51637E
split-complementary
#7E517A #637E51 #517E6B
monochromatic
#332132 #593956 #7E517A #A06C9C #B891B5

Accessibility & contrast

On white

6.28
#7E517A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7E517A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E517A
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E517A#FFFFFF#000000##FFFFFF
##7E517A1.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F5C7C
Deuteranopia (green-blind)
#5A6279
Tritanopia (blue-blind)
#815460
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e517a;
/* rgb */ color: rgb(126, 81, 122);
/* oklch */ color: oklch(50.0% 0.084 329.9);
Tailwind
colors: {
  custom: {
    50: '#a482a0',
    500: '#7e517a',
    950: '#000000',
  },
}
SCSS
$custom: #7e517a;
$custom-light: #a482a0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e517a",
  "rgb": {
    "r": 126,
    "g": 81,
    "b": 122
  },
  "hsl": {
    "h": 305.333,
    "s": 21.739,
    "l": 40.588
  },
  "oklch": {
    "l": 0.49975,
    "c": 0.0839,
    "h": 329.9
  },
  "luminance": 0.11726
}

Semantic roles & 50–950 ramp

primary
#7E517A
secondary
#85A588
accent
#BE716A
background
#FAF8F9
surface
#F4EFF2
border
#CECACC
text
#0F0A0E
muted
#7F7C7E

Preview Lab

Preview with #7E517A

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

Preview Lab → · Contrast checker → · Palette generator →

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