#9C227F#9C227F

#9C227F is a mid, vivid pink. Relative luminance 0.097; OKLCH L 48.5% C 0.183 H 339.7°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#9C227F
RGBrgb(156, 34, 127)
HSLhsl(314, 64%, 37%)
HSVhsv(314, 78%, 61%)
CMYKcmyk(0%, 78.2%, 18.6%, 38.8%)
CIE-LABlab(37.38, 57.64, -23.52)
CIE-LCHlch(37.38, 62.25, 337.80°)
OKLaboklab(48.45% 0.1719 -0.0636)
OKLCHoklch(48.45% 0.183 339.7)
XYZxyz(18.1136, 9.7461, 21.0018)
Luminance0.0974 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C227F #229C3F
analogous
#7C229C #9C227F #9C2242
triadic
#9C227F #7F9C22 #227F9C
tetradic
#9C227F #9C7C22 #229C3F #22429C
square
#9C227F #9C7C22 #229C3F #22429C
split-complementary
#9C227F #429C22 #229C7C
monochromatic
#380C2D #6A1756 #9C227F #CE2DA8 #DC5DBD

Accessibility & contrast

On white

7.12
#9C227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#9C227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9C227F
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C227F#FFFFFF#000000##FFFFFF
##9C227F1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4C81
Deuteranopia (green-blind)
#535F7C
Tritanopia (blue-blind)
#A5274E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9c227f;
/* rgb */ color: rgb(156, 34, 127);
/* oklch */ color: oklch(48.5% 0.183 339.7);
Tailwind
colors: {
  custom: {
    50: '#bd6ba4',
    500: '#9c227f',
    950: '#000000',
  },
}
SCSS
$custom: #9c227f;
$custom-light: #bd6ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#9c227f",
  "rgb": {
    "r": 156,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 314.262,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.48454,
    "c": 0.18327,
    "h": 339.7
  },
  "luminance": 0.09744
}

Semantic roles & 50–950 ramp

primary
#9C227F
secondary
#5AC072
accent
#E76841
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#13070F
muted
#827A7F

Preview Lab

Preview with #9C227F

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

Preview Lab → · Contrast checker → · Palette generator →

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