#9B227F#9B227F

#9B227F is a mid, vivid pink. Relative luminance 0.096; OKLCH L 48.3% C 0.183 H 339.3°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#9B227F
RGBrgb(155, 34, 127)
HSLhsl(314, 64%, 37%)
HSVhsv(314, 78%, 61%)
CMYKcmyk(0%, 78.1%, 18.1%, 39.2%)
CIE-LABlab(37.20, 57.40, -23.81)
CIE-LCHlch(37.20, 62.14, 337.47°)
OKLaboklab(48.29% 0.1709 -0.0645)
OKLCHoklch(48.29% 0.183 339.3)
XYZxyz(17.9208, 9.6467, 20.9928)
Luminance0.0964 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B227F #229B3E
analogous
#7A229B #9B227F #9B2243
triadic
#9B227F #7F9B22 #227F9B
tetradic
#9B227F #9B7A22 #229B3E #22439B
square
#9B227F #9B7A22 #229B3E #22439B
split-complementary
#9B227F #439B22 #229B7A
monochromatic
#370C2D #691756 #9B227F #CD2DA8 #DB5CBE

Accessibility & contrast

On white

7.17
#9B227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#9B227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9B227F
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B227F#FFFFFF#000000##FFFFFF
##9B227F1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4B81
Deuteranopia (green-blind)
#535E7C
Tritanopia (blue-blind)
#A4274E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9b227f;
/* rgb */ color: rgb(155, 34, 127);
/* oklch */ color: oklch(48.3% 0.183 339.3);
Tailwind
colors: {
  custom: {
    50: '#bc6ba4',
    500: '#9b227f',
    950: '#000000',
  },
}
SCSS
$custom: #9b227f;
$custom-light: #bc6ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#9b227f",
  "rgb": {
    "r": 155,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 313.884,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.48289,
    "c": 0.18267,
    "h": 339.3
  },
  "luminance": 0.09645
}

Semantic roles & 50–950 ramp

primary
#9B227F
secondary
#59C071
accent
#E76741
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #9B227F

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

Preview Lab → · Contrast checker → · Palette generator →

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