#9B2D87#9B2D87

#9B2D87 is a mid, vivid pink. Relative luminance 0.106; OKLCH L 49.6% C 0.176 H 336.1°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#9B2D87
RGBrgb(155, 45, 135)
HSLhsl(311, 55%, 39%)
HSVhsv(311, 71%, 61%)
CMYKcmyk(0%, 71%, 12.9%, 39.2%)
CIE-LABlab(38.89, 54.87, -26.12)
CIE-LCHlch(38.89, 60.77, 334.54°)
OKLaboklab(49.64% 0.1608 -0.0711)
OKLCHoklch(49.64% 0.176 336.1)
XYZxyz(18.8294, 10.5963, 23.9706)
Luminance0.1060 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2D87 #2D9B41
analogous
#782D9B #9B2D87 #9B2D50
triadic
#9B2D87 #879B2D #2D879B
tetradic
#9B2D87 #9B782D #2D9B41 #2D509B
square
#9B2D87 #9B782D #2D9B41 #2D509B
split-complementary
#9B2D87 #509B2D #2D9B78
monochromatic
#3C1134 #6C1F5E #9B2D87 #C73EAE #D56EC2

Accessibility & contrast

On white

6.73
#9B2D87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#9B2D87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B2D87
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2D87#FFFFFF#000000##FFFFFF
##9B2D871.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F518A
Deuteranopia (green-blind)
#546284
Tritanopia (blue-blind)
#A33456
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9b2d87;
/* rgb */ color: rgb(155, 45, 135);
/* oklch */ color: oklch(49.6% 0.176 336.1);
Tailwind
colors: {
  custom: {
    50: '#bc70aa',
    500: '#9b2d87',
    950: '#000000',
  },
}
SCSS
$custom: #9b2d87;
$custom-light: #bc70aa;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2d87",
  "rgb": {
    "r": 155,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 310.909,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.49637,
    "c": 0.17582,
    "h": 336.1
  },
  "luminance": 0.10595
}

Semantic roles & 50–950 ramp

primary
#9B2D87
secondary
#68BC77
accent
#DE6549
background
#FBF7FA
surface
#F7EDF4
border
#D0C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9B2D87

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

Preview Lab → · Contrast checker → · Palette generator →

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