#9F226F#9F226F

#9F226F is a mid, vivid pink. Relative luminance 0.097; OKLCH L 48.2% C 0.176 H 348.2°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#9F226F
RGBrgb(159, 34, 111)
HSLhsl(323, 65%, 38%)
HSVhsv(323, 79%, 62%)
CMYKcmyk(0%, 78.6%, 30.2%, 37.6%)
CIE-LABlab(37.23, 56.29, -13.69)
CIE-LCHlch(37.23, 57.93, 346.34°)
OKLaboklab(48.22% 0.1718 -0.036)
OKLCHoklch(48.22% 0.176 348.2)
XYZxyz(17.7403, 9.6647, 15.9671)
Luminance0.0966 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F226F #229F52
analogous
#90229F #9F226F #9F2230
triadic
#9F226F #6F9F22 #226F9F
tetradic
#9F226F #9F9022 #229F52 #22309F
square
#9F226F #9F9022 #229F52 #22309F
split-complementary
#9F226F #309F22 #229F90
monochromatic
#3A0C29 #6D174C #9F226F #D12D92 #DD5FAC

Accessibility & contrast

On white

7.16
#9F226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#9F226F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9F226F
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F226F#FFFFFF#000000##FFFFFF
##9F226F1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364A71
Deuteranopia (green-blind)
#5B5F6C
Tritanopia (blue-blind)
#AB1B46
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9f226f;
/* rgb */ color: rgb(159, 34, 111);
/* oklch */ color: oklch(48.2% 0.176 348.2);
Tailwind
colors: {
  custom: {
    50: '#c06b98',
    500: '#9f226f',
    950: '#000000',
  },
}
SCSS
$custom: #9f226f;
$custom-light: #c06b98;
$custom-dark: #000000;
JSON
{
  "hex": "#9f226f",
  "rgb": {
    "r": 159,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 323.04,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4822,
    "c": 0.17553,
    "h": 348.2
  },
  "luminance": 0.09663
}

Semantic roles & 50–950 ramp

primary
#9F226F
secondary
#5BC183
accent
#E88040
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13070D
muted
#827A7E

Preview Lab

Preview with #9F226F

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

Preview Lab → · Contrast checker → · Palette generator →

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