#9B5271#9B5271

#9B5271 is a mid, moderate pink. Relative luminance 0.142; OKLCH L 53.5% C 0.104 H 354.3°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#9B5271
RGBrgb(155, 82, 113)
HSLhsl(335, 31%, 46%)
HSVhsv(335, 47%, 61%)
CMYKcmyk(0%, 47.1%, 27.1%, 39.2%)
CIE-LABlab(44.51, 34.14, -4.06)
CIE-LCHlch(44.51, 34.38, 353.22°)
OKLaboklab(53.51% 0.103 -0.0103)
OKLCHoklch(53.51% 0.104 354.3)
XYZxyz(19.5161, 14.1970, 17.3320)
Luminance0.1419 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5271 #529B7C
analogous
#9B5296 #9B5271 #9B5852
triadic
#9B5271 #719B52 #52719B
tetradic
#9B5271 #969B52 #529B7C #58529B
square
#9B5271 #969B52 #529B7C #58529B
split-complementary
#9B5271 #529B58 #52969B
monochromatic
#4B2837 #733D54 #9B5271 #B67490 #CB9DB0

Accessibility & contrast

On white

5.47
#9B5271 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#9B5271 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B5271
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5271#FFFFFF#000000##FFFFFF
##9B52711.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B6172
Deuteranopia (green-blind)
#6E6E6F
Tritanopia (blue-blind)
#A54F5D
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9b5271;
/* rgb */ color: rgb(155, 82, 113);
/* oklch */ color: oklch(53.5% 0.104 354.3);
Tailwind
colors: {
  custom: {
    50: '#ba8499',
    500: '#9b5271',
    950: '#000000',
  },
}
SCSS
$custom: #9b5271;
$custom-light: #ba8499;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5271",
  "rgb": {
    "r": 155,
    "g": 82,
    "b": 113
  },
  "hsl": {
    "h": 334.521,
    "s": 30.802,
    "l": 46.471
  },
  "oklch": {
    "l": 0.53513,
    "c": 0.10354,
    "h": 354.3
  },
  "luminance": 0.14195
}

Semantic roles & 50–950 ramp

primary
#9B5271
secondary
#91B8A7
accent
#C79C61
background
#FBF8F9
surface
#F6EFF2
border
#D0CACC
text
#120B0E
muted
#817C7E

Preview Lab

Preview with #9B5271

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

Preview Lab → · Contrast checker → · Palette generator →

#9B5271 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva