#9F2E87#9F2E87

#9F2E87 is a mid, vivid pink. Relative luminance 0.111; OKLCH L 50.4% C 0.177 H 337.7°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#9F2E87
RGBrgb(159, 46, 135)
HSLhsl(313, 55%, 40%)
HSVhsv(313, 71%, 62%)
CMYKcmyk(0%, 71.1%, 15.1%, 37.6%)
CIE-LABlab(39.71, 55.52, -24.80)
CIE-LCHlch(39.71, 60.81, 335.93°)
OKLaboklab(50.36% 0.1638 -0.0673)
OKLCHoklch(50.36% 0.177 337.7)
XYZxyz(19.6486, 11.0760, 24.0200)
Luminance0.1107 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2E87 #2E9F46
analogous
#7E2E9F #9F2E87 #9F2E4F
triadic
#9F2E87 #879F2E #2E879F
tetradic
#9F2E87 #9F7E2E #2E9F46 #2E4F9F
square
#9F2E87 #9F7E2E #2E9F46 #2E4F9F
split-complementary
#9F2E87 #4F9F2E #2E9F7E
monochromatic
#401336 #70205F #9F2E87 #C842AC #D671C1

Accessibility & contrast

On white

6.53
#9F2E87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#9F2E87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2E87
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2E87#FFFFFF#000000##FFFFFF
##9F2E871.006.533.216.53
#FFFFFF6.531.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32528A
Deuteranopia (green-blind)
#576484
Tritanopia (blue-blind)
#A83456
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9f2e87;
/* rgb */ color: rgb(159, 46, 135);
/* oklch */ color: oklch(50.4% 0.177 337.7);
Tailwind
colors: {
  custom: {
    50: '#bf71aa',
    500: '#9f2e87',
    950: '#000000',
  },
}
SCSS
$custom: #9f2e87;
$custom-light: #bf71aa;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2e87",
  "rgb": {
    "r": 159,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 312.743,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.5036,
    "c": 0.17709,
    "h": 337.7
  },
  "luminance": 0.11074
}

Semantic roles & 50–950 ramp

primary
#9F2E87
secondary
#6BBE7D
accent
#DE6949
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F2E87

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

Preview Lab → · Contrast checker → · Palette generator →

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