#7F528D#7F528D

#7F528D is a mid, moderate purple. Relative luminance 0.125; OKLCH L 51.2% C 0.104 H 317.9°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#7F528D
RGBrgb(127, 82, 141)
HSLhsl(286, 26%, 44%)
HSVhsv(286, 42%, 55%)
CMYKcmyk(9.9%, 41.8%, 0%, 44.7%)
CIE-LABlab(41.95, 29.55, -25.31)
CIE-LCHlch(41.95, 38.91, 319.43°)
OKLaboklab(51.16% 0.0771 -0.0697)
OKLCHoklch(51.16% 0.104 317.9)
XYZxyz(16.5767, 12.4702, 26.7279)
Luminance0.1247 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F528D #608D52
analogous
#61528D #7F528D #8D527D
triadic
#7F528D #8D7F52 #528D7F
tetradic
#7F528D #8D6152 #608D52 #527D8D
square
#7F528D #8D6152 #608D52 #527D8D
split-complementary
#7F528D #7D8D52 #528D61
monochromatic
#392540 #5C3B66 #7F528D #9E70AC #B897C2

Accessibility & contrast

On white

6.01
#7F528D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#7F528D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F528D
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F528D#FFFFFF#000000##FFFFFF
##7F528D1.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f528d;
/* rgb */ color: rgb(127, 82, 141);
/* oklch */ color: oklch(51.2% 0.104 317.9);
Tailwind
colors: {
  custom: {
    50: '#a583ae',
    500: '#7f528d',
    950: '#000000',
  },
}
SCSS
$custom: #7f528d;
$custom-light: #a583ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7f528d",
  "rgb": {
    "r": 127,
    "g": 82,
    "b": 141
  },
  "hsl": {
    "h": 285.763,
    "s": 26.457,
    "l": 43.725
  },
  "oklch": {
    "l": 0.51158,
    "c": 0.10392,
    "h": 317.9
  },
  "luminance": 0.1247
}

Semantic roles & 50–950 ramp

primary
#7F528D
secondary
#94AF8B
accent
#C3657B
background
#FAF8FA
surface
#F4EFF4
border
#CECACE
text
#0F0B10
muted
#7F7C7F

Preview Lab

Preview with #7F528D

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

Preview Lab → · Contrast checker → · Palette generator →

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