#7E528D#7E528D

#7E528D is a mid, moderate purple. Relative luminance 0.124; OKLCH L 51.0% C 0.103 H 317.2°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#7E528D
RGBrgb(126, 82, 141)
HSLhsl(285, 26%, 44%)
HSVhsv(285, 42%, 55%)
CMYKcmyk(10.6%, 41.8%, 0%, 44.7%)
CIE-LABlab(41.84, 29.23, -25.50)
CIE-LCHlch(41.84, 38.79, 318.90°)
OKLaboklab(51.04% 0.0758 -0.0703)
OKLCHoklch(51.04% 0.103 317.2)
XYZxyz(16.4285, 12.3937, 26.7210)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E528D #618D52
analogous
#60528D #7E528D #8D527E
triadic
#7E528D #8D7E52 #528D7E
tetradic
#7E528D #8D6052 #618D52 #527E8D
square
#7E528D #8D6052 #618D52 #527E8D
split-complementary
#7E528D #7E8D52 #528D60
monochromatic
#392540 #5B3B66 #7E528D #9D70AC #B797C2

Accessibility & contrast

On white

6.04
#7E528D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7E528D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E528D
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E528D#FFFFFF#000000##FFFFFF
##7E528D1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#49608F
Deuteranopia (green-blind)
#54648B
Tritanopia (blue-blind)
#7E5A69
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7e528d;
/* rgb */ color: rgb(126, 82, 141);
/* oklch */ color: oklch(51.0% 0.103 317.2);
Tailwind
colors: {
  custom: {
    50: '#a483ae',
    500: '#7e528d',
    950: '#000000',
  },
}
SCSS
$custom: #7e528d;
$custom-light: #a483ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7e528d",
  "rgb": {
    "r": 126,
    "g": 82,
    "b": 141
  },
  "hsl": {
    "h": 284.746,
    "s": 26.457,
    "l": 43.725
  },
  "oklch": {
    "l": 0.51042,
    "c": 0.10337,
    "h": 317.2
  },
  "luminance": 0.12393
}

Semantic roles & 50–950 ramp

primary
#7E528D
secondary
#95AF8B
accent
#C3657D
background
#FAF8FA
surface
#F4EFF4
border
#CECACE
text
#0F0B10
muted
#7F7C7F

Preview Lab

Preview with #7E528D

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

Preview Lab → · Contrast checker → · Palette generator →

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