#9F2287#9F2287

#9F2287 is a mid, vivid pink. Relative luminance 0.103; OKLCH L 49.4% C 0.190 H 337.3°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#9F2287
RGBrgb(159, 34, 135)
HSLhsl(312, 65%, 38%)
HSVhsv(312, 79%, 62%)
CMYKcmyk(0%, 78.6%, 15.1%, 37.6%)
CIE-LABlab(38.32, 59.48, -26.97)
CIE-LCHlch(38.32, 65.31, 335.61°)
OKLaboklab(49.36% 0.1757 -0.0734)
OKLCHoklch(49.36% 0.19 337.3)
XYZxyz(19.2437, 10.2661, 23.8851)
Luminance0.1026 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2287 #229F3A
analogous
#78229F #9F2287 #9F2248
triadic
#9F2287 #879F22 #22879F
tetradic
#9F2287 #9F7822 #229F3A #22489F
square
#9F2287 #9F7822 #229F3A #22489F
split-complementary
#9F2287 #489F22 #229F78
monochromatic
#3A0C31 #6D175C #9F2287 #D12DB2 #DD5FC5

Accessibility & contrast

On white

6.88
#9F2287 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#9F2287 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2287
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2287#FFFFFF#000000##FFFFFF
##9F22871.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274E8A
Deuteranopia (green-blind)
#536184
Tritanopia (blue-blind)
#A82A53
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9f2287;
/* rgb */ color: rgb(159, 34, 135);
/* oklch */ color: oklch(49.4% 0.190 337.3);
Tailwind
colors: {
  custom: {
    50: '#bf6caa',
    500: '#9f2287',
    950: '#000000',
  },
}
SCSS
$custom: #9f2287;
$custom-light: #bf6caa;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2287",
  "rgb": {
    "r": 159,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 311.52,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.49355,
    "c": 0.19038,
    "h": 337.3
  },
  "luminance": 0.10264
}

Semantic roles & 50–950 ramp

primary
#9F2287
secondary
#5BC16F
accent
#E86040
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9F2287

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

Preview Lab → · Contrast checker → · Palette generator →

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