#9B227E#9B227E

#9B227E is a mid, vivid pink. Relative luminance 0.096; OKLCH L 48.2% C 0.182 H 339.8°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#9B227E
RGBrgb(155, 34, 126)
HSLhsl(314, 64%, 37%)
HSVhsv(314, 78%, 61%)
CMYKcmyk(0%, 78.1%, 18.7%, 39.2%)
CIE-LABlab(37.15, 57.26, -23.27)
CIE-LCHlch(37.15, 61.80, 337.88°)
OKLaboklab(48.24% 0.1708 -0.0629)
OKLCHoklch(48.24% 0.182 339.8)
XYZxyz(17.8560, 9.6208, 20.6512)
Luminance0.0962 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B227E #229B3F
analogous
#7C229B #9B227E #9B2242
triadic
#9B227E #7E9B22 #227E9B
tetradic
#9B227E #9B7C22 #229B3F #22429B
square
#9B227E #9B7C22 #229B3F #22429B
split-complementary
#9B227E #429B22 #229B7C
monochromatic
#370C2C #691755 #9B227E #CD2DA7 #DB5CBD

Accessibility & contrast

On white

7.18
#9B227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#9B227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9B227E
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B227E#FFFFFF#000000##FFFFFF
##9B227E1.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4B80
Deuteranopia (green-blind)
#535E7B
Tritanopia (blue-blind)
#A4274E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9b227e;
/* rgb */ color: rgb(155, 34, 126);
/* oklch */ color: oklch(48.2% 0.182 339.8);
Tailwind
colors: {
  custom: {
    50: '#bc6ba3',
    500: '#9b227e',
    950: '#000000',
  },
}
SCSS
$custom: #9b227e;
$custom-light: #bc6ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#9b227e",
  "rgb": {
    "r": 155,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 314.38,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.48239,
    "c": 0.18202,
    "h": 339.8
  },
  "luminance": 0.09619
}

Semantic roles & 50–950 ramp

primary
#9B227E
secondary
#59C072
accent
#E76941
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #9B227E

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

Preview Lab → · Contrast checker → · Palette generator →

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