#9F227B#9F227B

#9F227B is a mid, vivid pink. Relative luminance 0.099; OKLCH L 48.8% C 0.183 H 342.5°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#9F227B
RGBrgb(159, 34, 123)
HSLhsl(317, 65%, 38%)
HSVhsv(317, 79%, 62%)
CMYKcmyk(0%, 78.6%, 22.6%, 37.6%)
CIE-LABlab(37.75, 57.81, -20.42)
CIE-LCHlch(37.75, 61.31, 340.55°)
OKLaboklab(48.76% 0.1741 -0.0548)
OKLCHoklch(48.76% 0.183 342.5)
XYZxyz(18.4459, 9.9470, 19.6836)
Luminance0.0994 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F227B #229F46
analogous
#84229F #9F227B #9F223C
triadic
#9F227B #7B9F22 #227B9F
tetradic
#9F227B #9F8422 #229F46 #223C9F
square
#9F227B #9F8422 #229F46 #223C9F
split-complementary
#9F227B #3C9F22 #229F84
monochromatic
#3A0C2D #6D1754 #9F227B #D12DA2 #DD5FB8

Accessibility & contrast

On white

7.03
#9F227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#9F227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9F227B
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F227B#FFFFFF#000000##FFFFFF
##9F227B1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304C7D
Deuteranopia (green-blind)
#576078
Tritanopia (blue-blind)
#A9234C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9f227b;
/* rgb */ color: rgb(159, 34, 123);
/* oklch */ color: oklch(48.8% 0.183 342.5);
Tailwind
colors: {
  custom: {
    50: '#bf6ca1',
    500: '#9f227b',
    950: '#000000',
  },
}
SCSS
$custom: #9f227b;
$custom-light: #bf6ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f227b",
  "rgb": {
    "r": 159,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 317.28,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.48759,
    "c": 0.18256,
    "h": 342.5
  },
  "luminance": 0.09945
}

Semantic roles & 50–950 ramp

primary
#9F227B
secondary
#5BC179
accent
#E87040
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13080F
muted
#827A7E

Preview Lab

Preview with #9F227B

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

Preview Lab → · Contrast checker → · Palette generator →

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