#9B2771#9B2771

#9B2771 is a mid, vivid pink. Relative luminance 0.096; OKLCH L 48.0% C 0.168 H 346.2°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#9B2771
RGBrgb(155, 39, 113)
HSLhsl(322, 60%, 38%)
HSVhsv(322, 75%, 61%)
CMYKcmyk(0%, 74.8%, 27.1%, 39.2%)
CIE-LABlab(37.14, 53.90, -15.15)
CIE-LCHlch(37.14, 55.99, 344.30°)
OKLaboklab(48.04% 0.1636 -0.0401)
OKLCHoklch(48.04% 0.168 346.2)
XYZxyz(17.2245, 9.6137, 16.5681)
Luminance0.0961 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2771 #279B51
analogous
#8B279B #9B2771 #9B2737
triadic
#9B2771 #719B27 #27719B
tetradic
#9B2771 #9B8B27 #279B51 #27379B
square
#9B2771 #9B8B27 #279B51 #27379B
split-complementary
#9B2771 #379B27 #279B8B
monochromatic
#390E2A #6A1B4D #9B2771 #CC3395 #D864AE

Accessibility & contrast

On white

7.19
#9B2771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#9B2771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9B2771
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2771#FFFFFF#000000##FFFFFF
##9B27711.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364B73
Deuteranopia (green-blind)
#595F6E
Tritanopia (blue-blind)
#A62449
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9b2771;
/* rgb */ color: rgb(155, 39, 113);
/* oklch */ color: oklch(48.0% 0.168 346.2);
Tailwind
colors: {
  custom: {
    50: '#bc6d9a',
    500: '#9b2771',
    950: '#000000',
  },
}
SCSS
$custom: #9b2771;
$custom-light: #bc6d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2771",
  "rgb": {
    "r": 155,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 321.724,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.48041,
    "c": 0.16844,
    "h": 346.2
  },
  "luminance": 0.09612
}

Semantic roles & 50–950 ramp

primary
#9B2771
secondary
#60BE82
accent
#E37E45
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13080E
muted
#827A7E

Preview Lab

Preview with #9B2771

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

Preview Lab → · Contrast checker → · Palette generator →

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