#9F226D#9F226D

#9F226D is a mid, vivid pink. Relative luminance 0.096; OKLCH L 48.1% C 0.174 H 349.1°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#9F226D
RGBrgb(159, 34, 109)
HSLhsl(324, 65%, 38%)
HSVhsv(324, 79%, 62%)
CMYKcmyk(0%, 78.6%, 31.4%, 37.6%)
CIE-LABlab(37.15, 56.05, -12.54)
CIE-LCHlch(37.15, 57.43, 347.38°)
OKLaboklab(48.14% 0.1713 -0.0329)
OKLCHoklch(48.14% 0.174 349.1)
XYZxyz(17.6314, 9.6212, 15.3936)
Luminance0.0962 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F226D #229F54
analogous
#92229F #9F226D #9F222E
triadic
#9F226D #6D9F22 #226D9F
tetradic
#9F226D #9F9222 #229F54 #222E9F
square
#9F226D #9F9222 #229F54 #222E9F
split-complementary
#9F226D #2E9F22 #229F92
monochromatic
#3A0C28 #6D174A #9F226D #D12D90 #DD5FAA

Accessibility & contrast

On white

7.18
#9F226D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#9F226D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9F226D
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F226D#FFFFFF#000000##FFFFFF
##9F226D1.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37496F
Deuteranopia (green-blind)
#5C5F6A
Tritanopia (blue-blind)
#AB1A45
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9f226d;
/* rgb */ color: rgb(159, 34, 109);
/* oklch */ color: oklch(48.1% 0.174 349.1);
Tailwind
colors: {
  custom: {
    50: '#c06b97',
    500: '#9f226d',
    950: '#000000',
  },
}
SCSS
$custom: #9f226d;
$custom-light: #c06b97;
$custom-dark: #000000;
JSON
{
  "hex": "#9f226d",
  "rgb": {
    "r": 159,
    "g": 34,
    "b": 109
  },
  "hsl": {
    "h": 324,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.48135,
    "c": 0.17446,
    "h": 349.1
  },
  "luminance": 0.09619
}

Semantic roles & 50–950 ramp

primary
#9F226D
secondary
#5BC184
accent
#E88340
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13070D
muted
#827A7E

Preview Lab

Preview with #9F226D

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

Preview Lab → · Contrast checker → · Palette generator →

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