#9B226C#9B226C

#9B226C is a mid, vivid pink. Relative luminance 0.092; OKLCH L 47.4% C 0.171 H 348.3°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#9B226C
RGBrgb(155, 34, 108)
HSLhsl(323, 64%, 37%)
HSVhsv(323, 78%, 61%)
CMYKcmyk(0%, 78.1%, 30.3%, 39.2%)
CIE-LABlab(36.36, 54.89, -13.19)
CIE-LCHlch(36.36, 56.45, 346.49°)
OKLaboklab(47.41% 0.1675 -0.0347)
OKLCHoklch(47.41% 0.171 348.3)
XYZxyz(16.7972, 9.1973, 15.0751)
Luminance0.0920 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B226C #229B51
analogous
#8E229B #9B226C #9B222F
triadic
#9B226C #6C9B22 #226C9B
tetradic
#9B226C #9B8E22 #229B51 #222F9B
square
#9B226C #9B8E22 #229B51 #222F9B
split-complementary
#9B226C #2F9B22 #229B8E
monochromatic
#370C26 #691749 #9B226C #CD2D8F #DB5CAA

Accessibility & contrast

On white

7.40
#9B226C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#9B226C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9B226C
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B226C#FFFFFF#000000##FFFFFF
##9B226C1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35486E
Deuteranopia (green-blind)
#595D69
Tritanopia (blue-blind)
#A61C44
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #9b226c;
/* rgb */ color: rgb(155, 34, 108);
/* oklch */ color: oklch(47.4% 0.171 348.3);
Tailwind
colors: {
  custom: {
    50: '#bd6a96',
    500: '#9b226c',
    950: '#000000',
  },
}
SCSS
$custom: #9b226c;
$custom-light: #bd6a96;
$custom-dark: #000000;
JSON
{
  "hex": "#9b226c",
  "rgb": {
    "r": 155,
    "g": 34,
    "b": 108
  },
  "hsl": {
    "h": 323.306,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47407,
    "c": 0.17109,
    "h": 348.3
  },
  "luminance": 0.09195
}

Semantic roles & 50–950 ramp

primary
#9B226C
secondary
#59C081
accent
#E78141
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13070D
muted
#827A7E

Preview Lab

Preview with #9B226C

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

Preview Lab → · Contrast checker → · Palette generator →

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