#9B2F87#9B2F87

#9B2F87 is a mid, vivid pink. Relative luminance 0.108; OKLCH L 49.8% C 0.173 H 336.2°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#9B2F87
RGBrgb(155, 47, 135)
HSLhsl(311, 53%, 40%)
HSVhsv(311, 70%, 61%)
CMYKcmyk(0%, 69.7%, 12.9%, 39.2%)
CIE-LABlab(39.16, 54.12, -25.70)
CIE-LCHlch(39.16, 59.91, 334.59°)
OKLaboklab(49.83% 0.1585 -0.0699)
OKLCHoklch(49.83% 0.173 336.2)
XYZxyz(18.9075, 10.7525, 23.9966)
Luminance0.1075 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2F87 #2F9B43
analogous
#792F9B #9B2F87 #9B2F51
triadic
#9B2F87 #879B2F #2F879B
tetradic
#9B2F87 #9B792F #2F9B43 #2F519B
square
#9B2F87 #9B792F #2F9B43 #2F519B
split-complementary
#9B2F87 #519B2F #2F9B79
monochromatic
#3D1335 #6C215E #9B2F87 #C642AD #D471C1

Accessibility & contrast

On white

6.67
#9B2F87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#9B2F87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B2F87
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2F87#FFFFFF#000000##FFFFFF
##9B2F871.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31528A
Deuteranopia (green-blind)
#546284
Tritanopia (blue-blind)
#A33657
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9b2f87;
/* rgb */ color: rgb(155, 47, 135);
/* oklch */ color: oklch(49.8% 0.173 336.2);
Tailwind
colors: {
  custom: {
    50: '#bc71aa',
    500: '#9b2f87',
    950: '#000000',
  },
}
SCSS
$custom: #9b2f87;
$custom-light: #bc71aa;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2f87",
  "rgb": {
    "r": 155,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 311.111,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.49832,
    "c": 0.17329,
    "h": 336.2
  },
  "luminance": 0.10751
}

Semantic roles & 50–950 ramp

primary
#9B2F87
secondary
#6ABB79
accent
#DD664B
background
#FBF7FA
surface
#F7EDF4
border
#D0C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9B2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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