#9B2872#9B2872

#9B2872 is a mid, vivid pink. Relative luminance 0.097; OKLCH L 48.2% C 0.168 H 345.8°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#9B2872
RGBrgb(155, 40, 114)
HSLhsl(321, 59%, 38%)
HSVhsv(321, 74%, 61%)
CMYKcmyk(0%, 74.2%, 26.5%, 39.2%)
CIE-LABlab(37.30, 53.68, -15.53)
CIE-LCHlch(37.30, 55.88, 343.86°)
OKLaboklab(48.17% 0.1627 -0.0412)
OKLCHoklch(48.17% 0.168 345.8)
XYZxyz(17.3144, 9.7029, 16.8773)
Luminance0.0970 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2872 #289B51
analogous
#8A289B #9B2872 #9B2839
triadic
#9B2872 #729B28 #28729B
tetradic
#9B2872 #9B8A28 #289B51 #28399B
square
#9B2872 #9B8A28 #289B51 #28399B
split-complementary
#9B2872 #399B28 #289B8A
monochromatic
#3A0F2A #6A1B4E #9B2872 #CB3596 #D766AF

Accessibility & contrast

On white

7.14
#9B2872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#9B2872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9B2872
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2872#FFFFFF#000000##FFFFFF
##9B28721.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#374B74
Deuteranopia (green-blind)
#595F6F
Tritanopia (blue-blind)
#A62549
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9b2872;
/* rgb */ color: rgb(155, 40, 114);
/* oklch */ color: oklch(48.2% 0.168 345.8);
Tailwind
colors: {
  custom: {
    50: '#bc6d9a',
    500: '#9b2872',
    950: '#000000',
  },
}
SCSS
$custom: #9b2872;
$custom-light: #bc6d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2872",
  "rgb": {
    "r": 155,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 321.391,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.48174,
    "c": 0.16788,
    "h": 345.8
  },
  "luminance": 0.09701
}

Semantic roles & 50–950 ramp

primary
#9B2872
secondary
#61BD82
accent
#E27D46
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#12080E
muted
#817B7E

Preview Lab

Preview with #9B2872

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

Preview Lab → · Contrast checker → · Palette generator →

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