#9D227F#9D227F

#9D227F is a mid, vivid pink. Relative luminance 0.098; OKLCH L 48.6% C 0.184 H 340.0°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#9D227F
RGBrgb(157, 34, 127)
HSLhsl(315, 64%, 37%)
HSVhsv(315, 78%, 62%)
CMYKcmyk(0%, 78.3%, 19.1%, 38.4%)
CIE-LABlab(37.57, 57.88, -23.22)
CIE-LCHlch(37.57, 62.36, 338.14°)
OKLaboklab(48.62% 0.1728 -0.0627)
OKLCHoklch(48.62% 0.184 340)
XYZxyz(18.3080, 9.8463, 21.0109)
Luminance0.0984 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D227F #229D40
analogous
#7D229D #9D227F #9D2242
triadic
#9D227F #7F9D22 #227F9D
tetradic
#9D227F #9D7D22 #229D40 #22429D
square
#9D227F #9D7D22 #229D40 #22429D
split-complementary
#9D227F #429D22 #229D7D
monochromatic
#380C2E #6B1756 #9D227F #CF2DA8 #DC5DBD

Accessibility & contrast

On white

7.07
#9D227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#9D227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D227F
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D227F#FFFFFF#000000##FFFFFF
##9D227F1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4C81
Deuteranopia (green-blind)
#545F7C
Tritanopia (blue-blind)
#A7264E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9d227f;
/* rgb */ color: rgb(157, 34, 127);
/* oklch */ color: oklch(48.6% 0.184 340.0);
Tailwind
colors: {
  custom: {
    50: '#be6ba4',
    500: '#9d227f',
    950: '#000000',
  },
}
SCSS
$custom: #9d227f;
$custom-light: #be6ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#9d227f",
  "rgb": {
    "r": 157,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 314.634,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.4862,
    "c": 0.18387,
    "h": 340
  },
  "luminance": 0.09844
}

Semantic roles & 50–950 ramp

primary
#9D227F
secondary
#5AC173
accent
#E76940
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#13080F
muted
#827A7F

Preview Lab

Preview with #9D227F

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

Preview Lab → · Contrast checker → · Palette generator →

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