#9B2158#9B2158

#9B2158 is a mid, vivid pink. Relative luminance 0.088; OKLCH L 46.6% C 0.163 H 358.7°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#9B2158
RGBrgb(155, 33, 88)
HSLhsl(333, 65%, 37%)
HSVhsv(333, 79%, 61%)
CMYKcmyk(0%, 78.7%, 43.2%, 39.2%)
CIE-LABlab(35.52, 52.98, -1.67)
CIE-LCHlch(35.52, 53.00, 358.20°)
OKLaboklab(46.56% 0.1628 -0.0037)
OKLCHoklch(46.56% 0.163 358.7)
XYZxyz(15.8241, 8.7629, 10.0888)
Luminance0.0876 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2158 #219B64
analogous
#9B2195 #9B2158 #9B2721
triadic
#9B2158 #589B21 #21589B
tetradic
#9B2158 #959B21 #219B64 #27219B
square
#9B2158 #959B21 #219B64 #27219B
split-complementary
#9B2158 #219B27 #21959B
monochromatic
#360C1F #69163B #9B2158 #CD2C75 #DC5A95

Accessibility & contrast

On white

7.63
#9B2158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#9B2158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9B2158
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2158#FFFFFF#000000##FFFFFF
##9B21581.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D4559
Deuteranopia (green-blind)
#5E5C55
Tritanopia (blue-blind)
#A8093A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #9b2158;
/* rgb */ color: rgb(155, 33, 88);
/* oklch */ color: oklch(46.6% 0.163 358.7);
Tailwind
colors: {
  custom: {
    50: '#be6987',
    500: '#9b2158',
    950: '#000000',
  },
}
SCSS
$custom: #9b2158;
$custom-light: #be6987;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2158",
  "rgb": {
    "r": 155,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 332.951,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.46557,
    "c": 0.16288,
    "h": 358.7
  },
  "luminance": 0.08761
}

Semantic roles & 50–950 ramp

primary
#9B2158
secondary
#58C091
accent
#E89C40
background
#FCF6F8
surface
#F8ECEF
border
#D1C7CA
text
#13070B
muted
#827A7C

Preview Lab

Preview with #9B2158

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

Preview Lab → · Contrast checker → · Palette generator →

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