#9F2F8A#9F2F8A

#9F2F8A is a mid, vivid pink. Relative luminance 0.112; OKLCH L 50.6% C 0.178 H 336.4°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#9F2F8A
RGBrgb(159, 47, 138)
HSLhsl(311, 54%, 40%)
HSVhsv(311, 70%, 62%)
CMYKcmyk(0%, 70.4%, 13.2%, 37.6%)
CIE-LABlab(39.98, 55.60, -26.21)
CIE-LCHlch(39.98, 61.47, 334.76°)
OKLaboklab(50.61% 0.1631 -0.0713)
OKLCHoklch(50.61% 0.178 336.4)
XYZxyz(19.9023, 11.2407, 25.1613)
Luminance0.1124 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2F8A #2F9F44
analogous
#7C2F9F #9F2F8A #9F2F52
triadic
#9F2F8A #8A9F2F #2F8A9F
tetradic
#9F2F8A #9F7C2F #2F9F44 #2F529F
square
#9F2F8A #9F7C2F #2F9F44 #2F529F
split-complementary
#9F2F8A #529F2F #2F9F7C
monochromatic
#411338 #702161 #9F2F8A #C844AF #D673C3

Accessibility & contrast

On white

6.47
#9F2F8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#9F2F8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2F8A
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2F8A#FFFFFF#000000##FFFFFF
##9F2F8A1.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31538D
Deuteranopia (green-blind)
#566487
Tritanopia (blue-blind)
#A73658
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9f2f8a;
/* rgb */ color: rgb(159, 47, 138);
/* oklch */ color: oklch(50.6% 0.178 336.4);
Tailwind
colors: {
  custom: {
    50: '#bf71ac',
    500: '#9f2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #9f2f8a;
$custom-light: #bf71ac;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2f8a",
  "rgb": {
    "r": 159,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 311.25,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.50606,
    "c": 0.178,
    "h": 336.4
  },
  "luminance": 0.11239
}

Semantic roles & 50–950 ramp

primary
#9F2F8A
secondary
#6DBD7C
accent
#DE664A
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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