#9D227B#9D227B

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

Color values

HEX#9D227B
RGBrgb(157, 34, 123)
HSLhsl(317, 64%, 37%)
HSVhsv(317, 78%, 62%)
CMYKcmyk(0%, 78.3%, 21.7%, 38.4%)
CIE-LABlab(37.38, 57.33, -21.02)
CIE-LCHlch(37.38, 61.06, 339.87°)
OKLaboklab(48.43% 0.1723 -0.0565)
OKLCHoklch(48.43% 0.181 341.8)
XYZxyz(18.0524, 9.7441, 19.6651)
Luminance0.0974 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D227B #229D44
analogous
#81229D #9D227B #9D223E
triadic
#9D227B #7B9D22 #227B9D
tetradic
#9D227B #9D8122 #229D44 #223E9D
square
#9D227B #9D8122 #229D44 #223E9D
split-complementary
#9D227B #3E9D22 #229D81
monochromatic
#380C2C #6B1754 #9D227B #CF2DA2 #DC5DB9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D227B#FFFFFF#000000##FFFFFF
##9D227B1.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)
#2E4B7D
Deuteranopia (green-blind)
#565F78
Tritanopia (blue-blind)
#A7244C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9d227b;
/* rgb */ color: rgb(157, 34, 123);
/* oklch */ color: oklch(48.4% 0.181 341.8);
Tailwind
colors: {
  custom: {
    50: '#be6ba1',
    500: '#9d227b',
    950: '#000000',
  },
}
SCSS
$custom: #9d227b;
$custom-light: #be6ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d227b",
  "rgb": {
    "r": 157,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 316.585,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.48425,
    "c": 0.1813,
    "h": 341.8
  },
  "luminance": 0.09742
}

Semantic roles & 50–950 ramp

primary
#9D227B
secondary
#5AC177
accent
#E76F40
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13070F
muted
#827A7E

Preview Lab

Preview with #9D227B

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

Preview Lab → · Contrast checker → · Palette generator →

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