#9C227E#9C227E

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

Color values

HEX#9C227E
RGBrgb(156, 34, 126)
HSLhsl(315, 64%, 37%)
HSVhsv(315, 78%, 61%)
CMYKcmyk(0%, 78.2%, 19.2%, 38.8%)
CIE-LABlab(37.34, 57.50, -22.97)
CIE-LCHlch(37.34, 61.91, 338.22°)
OKLaboklab(48.41% 0.1718 -0.062)
OKLCHoklch(48.41% 0.183 340.1)
XYZxyz(18.0488, 9.7202, 20.6603)
Luminance0.0972 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C227E #229C40
analogous
#7D229C #9C227E #9C2241
triadic
#9C227E #7E9C22 #227E9C
tetradic
#9C227E #9C7D22 #229C40 #22419C
square
#9C227E #9C7D22 #229C40 #22419C
split-complementary
#9C227E #419C22 #229C7D
monochromatic
#380C2D #6A1755 #9C227E #CE2DA7 #DC5DBC

Accessibility & contrast

On white

7.13
#9C227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#9C227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9C227E
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C227E#FFFFFF#000000##FFFFFF
##9C227E1.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4C80
Deuteranopia (green-blind)
#545F7B
Tritanopia (blue-blind)
#A6264E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9c227e;
/* rgb */ color: rgb(156, 34, 126);
/* oklch */ color: oklch(48.4% 0.183 340.1);
Tailwind
colors: {
  custom: {
    50: '#bd6ba3',
    500: '#9c227e',
    950: '#000000',
  },
}
SCSS
$custom: #9c227e;
$custom-light: #bd6ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#9c227e",
  "rgb": {
    "r": 156,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 314.754,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.48405,
    "c": 0.18262,
    "h": 340.1
  },
  "luminance": 0.09718
}

Semantic roles & 50–950 ramp

primary
#9C227E
secondary
#5AC073
accent
#E76A41
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#13070F
muted
#827A7F

Preview Lab

Preview with #9C227E

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

Preview Lab → · Contrast checker → · Palette generator →

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