#9F227C#9F227C

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

Color values

HEX#9F227C
RGBrgb(159, 34, 124)
HSLhsl(317, 65%, 38%)
HSVhsv(317, 79%, 62%)
CMYKcmyk(0%, 78.6%, 22%, 37.6%)
CIE-LABlab(37.79, 57.95, -20.97)
CIE-LCHlch(37.79, 61.63, 340.10°)
OKLaboklab(48.81% 0.1743 -0.0563)
OKLCHoklch(48.81% 0.183 342.1)
XYZxyz(18.5089, 9.9722, 20.0150)
Luminance0.0997 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F227C #229F45
analogous
#83229F #9F227C #9F223D
triadic
#9F227C #7C9F22 #227C9F
tetradic
#9F227C #9F8322 #229F45 #223D9F
square
#9F227C #9F8322 #229F45 #223D9F
split-complementary
#9F227C #3D9F22 #229F83
monochromatic
#3A0C2D #6D1755 #9F227C #D12DA3 #DD5FB9

Accessibility & contrast

On white

7.01
#9F227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9F227C
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F227C#FFFFFF#000000##FFFFFF
##9F227C1.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4C7E
Deuteranopia (green-blind)
#576079
Tritanopia (blue-blind)
#A9244D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9f227c;
/* rgb */ color: rgb(159, 34, 124);
/* oklch */ color: oklch(48.8% 0.183 342.1);
Tailwind
colors: {
  custom: {
    50: '#bf6ca2',
    500: '#9f227c',
    950: '#000000',
  },
}
SCSS
$custom: #9f227c;
$custom-light: #bf6ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f227c",
  "rgb": {
    "r": 159,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 316.8,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.48807,
    "c": 0.18318,
    "h": 342.1
  },
  "luminance": 0.0997
}

Semantic roles & 50–950 ramp

primary
#9F227C
secondary
#5BC178
accent
#E86F40
background
#FCF6FA
surface
#F8ECF3
border
#D1C7CD
text
#13080F
muted
#827A7F

Preview Lab

Preview with #9F227C

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

Preview Lab → · Contrast checker → · Palette generator →

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