#7E5A7B#7E5A7B

#7E5A7B is a mid, moderate purple. Relative luminance 0.132; OKLCH L 51.7% C 0.067 H 329.3°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#7E5A7B
RGBrgb(126, 90, 123)
HSLhsl(305, 17%, 42%)
HSVhsv(305, 29%, 49%)
CMYKcmyk(0%, 28.6%, 2.4%, 50.6%)
CIE-LABlab(43.03, 20.68, -12.75)
CIE-LCHlch(43.03, 24.30, 328.35°)
OKLaboklab(51.7% 0.0579 -0.0343)
OKLCHoklch(51.7% 0.067 329.3)
XYZxyz(15.8352, 13.1785, 20.4446)
Luminance0.1318 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5A7B #5A7E5D
analogous
#6F5A7E #7E5A7B #7E5A69
triadic
#7E5A7B #7B7E5A #5A7B7E
tetradic
#7E5A7B #7E6F5A #5A7E5D #5A697E
square
#7E5A7B #7E6F5A #5A7E5D #5A697E
split-complementary
#7E5A7B #697E5A #5A7E6F
monochromatic
#372735 #5A4058 #7E5A7B #9E779B #B89BB5

Accessibility & contrast

On white

5.78
#7E5A7B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#7E5A7B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5A7B
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5A7B#FFFFFF#000000##FFFFFF
##7E5A7B1.005.783.645.78
#FFFFFF5.781.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#59637C
Deuteranopia (green-blind)
#61677A
Tritanopia (blue-blind)
#815C66
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7e5a7b;
/* rgb */ color: rgb(126, 90, 123);
/* oklch */ color: oklch(51.7% 0.067 329.3);
Tailwind
colors: {
  custom: {
    50: '#a489a1',
    500: '#7e5a7b',
    950: '#000000',
  },
}
SCSS
$custom: #7e5a7b;
$custom-light: #a489a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5a7b",
  "rgb": {
    "r": 126,
    "g": 90,
    "b": 123
  },
  "hsl": {
    "h": 305,
    "s": 16.667,
    "l": 42.353
  },
  "oklch": {
    "l": 0.51701,
    "c": 0.06727,
    "h": 329.3
  },
  "luminance": 0.13178
}

Semantic roles & 50–950 ramp

primary
#7E5A7B
secondary
#8EA690
accent
#B9756E
background
#FAF8F9
surface
#F4F0F2
border
#CECBCC
text
#0F0B0F
muted
#7F7C7E

Preview Lab

Preview with #7E5A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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