#9D227D#9D227D

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

Color values

HEX#9D227D
RGBrgb(157, 34, 125)
HSLhsl(316, 64%, 37%)
HSVhsv(316, 78%, 62%)
CMYKcmyk(0%, 78.3%, 20.4%, 38.4%)
CIE-LABlab(37.47, 57.60, -22.12)
CIE-LCHlch(37.47, 61.70, 338.99°)
OKLaboklab(48.52% 0.1726 -0.0596)
OKLCHoklch(48.52% 0.183 340.9)
XYZxyz(18.1789, 9.7947, 20.3312)
Luminance0.0979 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D227D #229D42
analogous
#80229D #9D227D #9D223F
triadic
#9D227D #7D9D22 #227D9D
tetradic
#9D227D #9D8022 #229D42 #223F9D
square
#9D227D #9D8022 #229D42 #223F9D
split-complementary
#9D227D #3F9D22 #229D80
monochromatic
#380C2D #6B1755 #9D227D #CF2DA5 #DC5DBB

Accessibility & contrast

On white

7.10
#9D227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#9D227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D227D
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D227D#FFFFFF#000000##FFFFFF
##9D227D1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4C7F
Deuteranopia (green-blind)
#555F7A
Tritanopia (blue-blind)
#A7254D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9d227d;
/* rgb */ color: rgb(157, 34, 125);
/* oklch */ color: oklch(48.5% 0.183 340.9);
Tailwind
colors: {
  custom: {
    50: '#be6ba3',
    500: '#9d227d',
    950: '#000000',
  },
}
SCSS
$custom: #9d227d;
$custom-light: #be6ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#9d227d",
  "rgb": {
    "r": 157,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 315.61,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.48522,
    "c": 0.18258,
    "h": 340.9
  },
  "luminance": 0.09793
}

Semantic roles & 50–950 ramp

primary
#9D227D
secondary
#5AC175
accent
#E76C40
background
#FCF6FA
surface
#F8ECF3
border
#D1C7CD
text
#13080F
muted
#827A7F

Preview Lab

Preview with #9D227D

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

Preview Lab → · Contrast checker → · Palette generator →

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