#9F298B#9F298B

#9F298B is a mid, vivid pink. Relative luminance 0.108; OKLCH L 50.1% C 0.186 H 335.8°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#9F298B
RGBrgb(159, 41, 139)
HSLhsl(310, 59%, 39%)
HSVhsv(310, 74%, 62%)
CMYKcmyk(0%, 74.2%, 12.6%, 37.6%)
CIE-LABlab(39.28, 57.88, -27.92)
CIE-LCHlch(39.28, 64.26, 334.25°)
OKLaboklab(50.11% 0.1695 -0.0762)
OKLCHoklch(50.11% 0.186 335.8)
XYZxyz(19.7515, 10.8227, 25.4698)
Luminance0.1082 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F298B #299F3D
analogous
#78299F #9F298B #9F2950
triadic
#9F298B #8B9F29 #298B9F
tetradic
#9F298B #9F7829 #299F3D #29509F
square
#9F298B #9F7829 #299F3D #29509F
split-complementary
#9F298B #509F29 #299F78
monochromatic
#3E1036 #6E1C60 #9F298B #CC39B3 #D96AC6

Accessibility & contrast

On white

6.64
#9F298B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#9F298B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F298B
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F298B#FFFFFF#000000##FFFFFF
##9F298B1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A518E
Deuteranopia (green-blind)
#546388
Tritanopia (blue-blind)
#A73257
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9f298b;
/* rgb */ color: rgb(159, 41, 139);
/* oklch */ color: oklch(50.1% 0.186 335.8);
Tailwind
colors: {
  custom: {
    50: '#bf6fad',
    500: '#9f298b',
    950: '#000000',
  },
}
SCSS
$custom: #9f298b;
$custom-light: #bf6fad;
$custom-dark: #000000;
JSON
{
  "hex": "#9f298b",
  "rgb": {
    "r": 159,
    "g": 41,
    "b": 139
  },
  "hsl": {
    "h": 310.169,
    "s": 59,
    "l": 39.216
  },
  "oklch": {
    "l": 0.50114,
    "c": 0.18584,
    "h": 335.8
  },
  "luminance": 0.10821
}

Semantic roles & 50–950 ramp

primary
#9F298B
secondary
#65BF74
accent
#E26046
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9F298B

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

Preview Lab → · Contrast checker → · Palette generator →

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