#9B2271#9B2271

#9B2271 is a mid, vivid pink. Relative luminance 0.093; OKLCH L 47.6% C 0.174 H 345.8°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#9B2271
RGBrgb(155, 34, 113)
HSLhsl(321, 64%, 37%)
HSVhsv(321, 78%, 61%)
CMYKcmyk(0%, 78.1%, 27.1%, 39.2%)
CIE-LABlab(36.57, 55.52, -16.03)
CIE-LCHlch(36.57, 57.78, 343.89°)
OKLaboklab(47.63% 0.1686 -0.0425)
OKLCHoklch(47.63% 0.174 345.8)
XYZxyz(17.0710, 9.3068, 16.5170)
Luminance0.0930 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2271 #229B4C
analogous
#88229B #9B2271 #9B2235
triadic
#9B2271 #719B22 #22719B
tetradic
#9B2271 #9B8822 #229B4C #22359B
square
#9B2271 #9B8822 #229B4C #22359B
split-complementary
#9B2271 #359B22 #229B88
monochromatic
#370C28 #69174C #9B2271 #CD2D96 #DB5CAF

Accessibility & contrast

On white

7.34
#9B2271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#9B2271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9B2271
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2271#FFFFFF#000000##FFFFFF
##9B22711.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334973
Deuteranopia (green-blind)
#585D6E
Tritanopia (blue-blind)
#A61F47
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #9b2271;
/* rgb */ color: rgb(155, 34, 113);
/* oklch */ color: oklch(47.6% 0.174 345.8);
Tailwind
colors: {
  custom: {
    50: '#bd6b9a',
    500: '#9b2271',
    950: '#000000',
  },
}
SCSS
$custom: #9b2271;
$custom-light: #bd6b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2271",
  "rgb": {
    "r": 155,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 320.826,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47625,
    "c": 0.17392,
    "h": 345.8
  },
  "luminance": 0.09305
}

Semantic roles & 50–950 ramp

primary
#9B2271
secondary
#59C07D
accent
#E77A41
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13070E
muted
#827A7E

Preview Lab

Preview with #9B2271

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

Preview Lab → · Contrast checker → · Palette generator →

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