#7F507C#7F507C

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

Color values

HEX#7F507C
RGBrgb(127, 80, 124)
HSLhsl(304, 23%, 41%)
HSVhsv(304, 37%, 50%)
CMYKcmyk(0%, 37%, 2.4%, 50.2%)
CIE-LABlab(40.74, 27.16, -16.83)
CIE-LCHlch(40.74, 31.96, 328.21°)
OKLaboklab(50% 0.0761 -0.0456)
OKLCHoklch(50% 0.089 329.1)
XYZxyz(15.2589, 11.7052, 20.5205)
Luminance0.1171 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F507C #507F53
analogous
#6A507F #7F507C #7F5064
triadic
#7F507C #7C7F50 #507C7F
tetradic
#7F507C #7F6A50 #507F53 #50647F
square
#7F507C #7F6A50 #507F53 #50647F
split-complementary
#7F507C #647F50 #507F6A
monochromatic
#342133 #593857 #7F507C #A26B9E #B990B7

Accessibility & contrast

On white

6.29
#7F507C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7F507C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F507C
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F507C#FFFFFF#000000##FFFFFF
##7F507C1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E5C7E
Deuteranopia (green-blind)
#59627A
Tritanopia (blue-blind)
#825460
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7f507c;
/* rgb */ color: rgb(127, 80, 124);
/* oklch */ color: oklch(50.0% 0.089 329.1);
Tailwind
colors: {
  custom: {
    50: '#a582a2',
    500: '#7f507c',
    950: '#000000',
  },
}
SCSS
$custom: #7f507c;
$custom-light: #a582a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f507c",
  "rgb": {
    "r": 127,
    "g": 80,
    "b": 124
  },
  "hsl": {
    "h": 303.83,
    "s": 22.705,
    "l": 40.588
  },
  "oklch": {
    "l": 0.50003,
    "c": 0.08869,
    "h": 329.1
  },
  "luminance": 0.11705
}

Semantic roles & 50–950 ramp

primary
#7F507C
secondary
#85A687
accent
#BF6E69
background
#FAF8F9
surface
#F4EFF2
border
#CECACC
text
#0F0A0F
muted
#7F7C7E

Preview Lab

Preview with #7F507C

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

Preview Lab → · Contrast checker → · Palette generator →

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