#9F218B#9F218B

#9F218B is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.5% C 0.194 H 335.7°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#9F218B
RGBrgb(159, 33, 139)
HSLhsl(310, 66%, 38%)
HSVhsv(310, 79%, 62%)
CMYKcmyk(0%, 79.2%, 12.6%, 37.6%)
CIE-LABlab(38.42, 60.34, -29.27)
CIE-LCHlch(38.42, 67.07, 334.12°)
OKLaboklab(49.49% 0.1768 -0.08)
OKLCHoklch(49.49% 0.194 335.7)
XYZxyz(19.5024, 10.3245, 25.3868)
Luminance0.1032 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F218B #219F35
analogous
#74219F #9F218B #9F214C
triadic
#9F218B #8B9F21 #218B9F
tetradic
#9F218B #9F7421 #219F35 #214C9F
square
#9F218B #9F7421 #219F35 #214C9F
split-complementary
#9F218B #4C9F21 #219F74
monochromatic
#3A0C32 #6C165F #9F218B #D22CB7 #DD5DC9

Accessibility & contrast

On white

6.85
#9F218B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#9F218B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F218B
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F218B#FFFFFF#000000##FFFFFF
##9F218B1.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224F8E
Deuteranopia (green-blind)
#516188
Tritanopia (blue-blind)
#A72C55
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9f218b;
/* rgb */ color: rgb(159, 33, 139);
/* oklch */ color: oklch(49.5% 0.194 335.7);
Tailwind
colors: {
  custom: {
    50: '#bf6cad',
    500: '#9f218b',
    950: '#000000',
  },
}
SCSS
$custom: #9f218b;
$custom-light: #bf6cad;
$custom-dark: #000000;
JSON
{
  "hex": "#9f218b",
  "rgb": {
    "r": 159,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 309.524,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.49494,
    "c": 0.19409,
    "h": 335.7
  },
  "luminance": 0.10323
}

Semantic roles & 50–950 ramp

primary
#9F218B
secondary
#5AC26A
accent
#E95A3F
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9F218B

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

Preview Lab → · Contrast checker → · Palette generator →

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