#9D227E#9D227E

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

Color values

HEX#9D227E
RGBrgb(157, 34, 126)
HSLhsl(315, 64%, 37%)
HSVhsv(315, 78%, 62%)
CMYKcmyk(0%, 78.3%, 19.7%, 38.4%)
CIE-LABlab(37.52, 57.74, -22.67)
CIE-LCHlch(37.52, 62.03, 338.56°)
OKLaboklab(48.57% 0.1727 -0.0612)
OKLCHoklch(48.57% 0.183 340.5)
XYZxyz(18.2431, 9.8204, 20.6694)
Luminance0.0982 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D227E #229D41
analogous
#7F229D #9D227E #9D2240
triadic
#9D227E #7E9D22 #227E9D
tetradic
#9D227E #9D7F22 #229D41 #22409D
square
#9D227E #9D7F22 #229D41 #22409D
split-complementary
#9D227E #409D22 #229D7F
monochromatic
#380C2D #6B1756 #9D227E #CF2DA6 #DC5DBC

Accessibility & contrast

On white

7.09
#9D227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #9D227E
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D227E#FFFFFF#000000##FFFFFF
##9D227E1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9d227e;
/* rgb */ color: rgb(157, 34, 126);
/* oklch */ color: oklch(48.6% 0.183 340.5);
Tailwind
colors: {
  custom: {
    50: '#be6ba3',
    500: '#9d227e',
    950: '#000000',
  },
}
SCSS
$custom: #9d227e;
$custom-light: #be6ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#9d227e",
  "rgb": {
    "r": 157,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 315.122,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.48571,
    "c": 0.18323,
    "h": 340.5
  },
  "luminance": 0.09819
}

Semantic roles & 50–950 ramp

primary
#9D227E
secondary
#5AC174
accent
#E76A40
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#13080F
muted
#827A7F

Preview Lab

Preview with #9D227E

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

Preview Lab → · Contrast checker → · Palette generator →

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