#7F5271#7F5271

#7F5271 is a mid, moderate pink. Relative luminance 0.117; OKLCH L 49.9% C 0.074 H 339.0°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#7F5271
RGBrgb(127, 82, 113)
HSLhsl(319, 22%, 41%)
HSVhsv(319, 35%, 50%)
CMYKcmyk(0%, 35.4%, 11%, 50.2%)
CIE-LABlab(40.80, 23.87, -9.99)
CIE-LCHlch(40.80, 25.88, 337.28°)
OKLaboklab(49.91% 0.0693 -0.0266)
OKLCHoklch(49.91% 0.074 339)
XYZxyz(14.7503, 11.7396, 17.1086)
Luminance0.1174 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5271 #527F60
analogous
#76527F #7F5271 #7F525A
triadic
#7F5271 #717F52 #52717F
tetradic
#7F5271 #7F7652 #527F60 #525A7F
square
#7F5271 #7F7652 #527F60 #525A7F
split-complementary
#7F5271 #5A7F52 #527F76
monochromatic
#35222F #5A3A50 #7F5271 #A16D91 #B992AD

Accessibility & contrast

On white

6.27
#7F5271 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7F5271
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5271#FFFFFF#000000##FFFFFF
##7F52711.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#535C72
Deuteranopia (green-blind)
#5E6370
Tritanopia (blue-blind)
#84535D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7f5271;
/* rgb */ color: rgb(127, 82, 113);
/* oklch */ color: oklch(49.9% 0.074 339.0);
Tailwind
colors: {
  custom: {
    50: '#a58399',
    500: '#7f5271',
    950: '#000000',
  },
}
SCSS
$custom: #7f5271;
$custom-light: #a58399;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5271",
  "rgb": {
    "r": 127,
    "g": 82,
    "b": 113
  },
  "hsl": {
    "h": 318.667,
    "s": 21.531,
    "l": 40.98
  },
  "oklch": {
    "l": 0.49905,
    "c": 0.07422,
    "h": 339
  },
  "luminance": 0.11739
}

Semantic roles & 50–950 ramp

primary
#7F5271
secondary
#87A690
accent
#BE846A
background
#FAF8F9
surface
#F4EFF2
border
#CECACC
text
#0F0A0E
muted
#7F7C7E

Preview Lab

Preview with #7F5271

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

Preview Lab → · Contrast checker → · Palette generator →

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