#9F2F88#9F2F88

#9F2F88 is a mid, vivid pink. Relative luminance 0.112; OKLCH L 50.5% C 0.177 H 337.3°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#9F2F88
RGBrgb(159, 47, 136)
HSLhsl(312, 54%, 40%)
HSVhsv(312, 70%, 62%)
CMYKcmyk(0%, 70.4%, 14.5%, 37.6%)
CIE-LABlab(39.89, 55.30, -25.13)
CIE-LCHlch(39.89, 60.74, 335.56°)
OKLaboklab(50.51% 0.1628 -0.0682)
OKLCHoklch(50.51% 0.177 337.3)
XYZxyz(19.7589, 11.1833, 24.4057)
Luminance0.1118 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2F88 #2F9F46
analogous
#7E2F9F #9F2F88 #9F2F50
triadic
#9F2F88 #889F2F #2F889F
tetradic
#9F2F88 #9F7E2F #2F9F46 #2F509F
square
#9F2F88 #9F7E2F #2F9F46 #2F509F
split-complementary
#9F2F88 #509F2F #2F9F7E
monochromatic
#411337 #702160 #9F2F88 #C844AC #D673C1

Accessibility & contrast

On white

6.49
#9F2F88 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#9F2F88 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2F88
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2F88#FFFFFF#000000##FFFFFF
##9F2F881.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32538B
Deuteranopia (green-blind)
#576485
Tritanopia (blue-blind)
#A83557
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9f2f88;
/* rgb */ color: rgb(159, 47, 136);
/* oklch */ color: oklch(50.5% 0.177 337.3);
Tailwind
colors: {
  custom: {
    50: '#bf71ab',
    500: '#9f2f88',
    950: '#000000',
  },
}
SCSS
$custom: #9f2f88;
$custom-light: #bf71ab;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2f88",
  "rgb": {
    "r": 159,
    "g": 47,
    "b": 136
  },
  "hsl": {
    "h": 312.321,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.50506,
    "c": 0.17656,
    "h": 337.3
  },
  "luminance": 0.11182
}

Semantic roles & 50–950 ramp

primary
#9F2F88
secondary
#6DBD7D
accent
#DE684A
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F2F88

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

Preview Lab → · Contrast checker → · Palette generator →

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