#9A2887#9A2887

#9A2887 is a mid, vivid pink. Relative luminance 0.101; OKLCH L 49.0% C 0.181 H 335.6°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#9A2887
RGBrgb(154, 40, 135)
HSLhsl(310, 59%, 38%)
HSVhsv(310, 74%, 60%)
CMYKcmyk(0%, 74%, 12.3%, 39.6%)
CIE-LABlab(38.09, 56.40, -27.39)
CIE-LCHlch(38.09, 62.70, 334.10°)
OKLaboklab(49.03% 0.165 -0.0747)
OKLCHoklch(49.03% 0.181 335.6)
XYZxyz(18.4586, 10.1385, 23.9017)
Luminance0.1014 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2887 #289A3B
analogous
#74289A #9A2887 #9A284E
triadic
#9A2887 #879A28 #28879A
tetradic
#9A2887 #9A7428 #289A3B #284E9A
square
#9A2887 #9A7428 #289A3B #284E9A
split-complementary
#9A2887 #4E9A28 #289A74
monochromatic
#390F32 #691B5C #9A2887 #CA35B2 #D765C4

Accessibility & contrast

On white

6.94
#9A2887 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#9A2887 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A2887
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2887#FFFFFF#000000##FFFFFF
##9A28871.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294F8A
Deuteranopia (green-blind)
#516084
Tritanopia (blue-blind)
#A23155
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9a2887;
/* rgb */ color: rgb(154, 40, 135);
/* oklch */ color: oklch(49.0% 0.181 335.6);
Tailwind
colors: {
  custom: {
    50: '#bb6eaa',
    500: '#9a2887',
    950: '#000000',
  },
}
SCSS
$custom: #9a2887;
$custom-light: #bb6eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2887",
  "rgb": {
    "r": 154,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 310,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.49025,
    "c": 0.18116,
    "h": 335.6
  },
  "luminance": 0.10137
}

Semantic roles & 50–950 ramp

primary
#9A2887
secondary
#61BD70
accent
#E26046
background
#FBF7FA
surface
#F7EDF4
border
#D0C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9A2887

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

Preview Lab → · Contrast checker → · Palette generator →

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