#B22788#B22788

#B22788 is a mid, vivid pink. Relative luminance 0.127; OKLCH L 52.9% C 0.197 H 343.4°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#B22788
RGBrgb(178, 39, 136)
HSLhsl(318, 64%, 43%)
HSVhsv(318, 78%, 70%)
CMYKcmyk(0%, 78.1%, 23.6%, 30.2%)
CIE-LABlab(42.30, 62.65, -21.12)
CIE-LCHlch(42.30, 66.12, 341.37°)
OKLaboklab(52.88% 0.1892 -0.0565)
OKLCHoklch(52.88% 0.197 343.4)
XYZxyz(23.5305, 12.6961, 24.4992)
Luminance0.1269 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22788 #27B251
analogous
#9627B2 #B22788 #B22743
triadic
#B22788 #88B227 #2788B2
tetradic
#B22788 #B29627 #27B251 #2743B2
square
#B22788 #B29627 #27B251 #2743B2
split-complementary
#B22788 #43B227 #27B296
monochromatic
#4E113B #801C62 #B22788 #D541A8 #E073BF

Accessibility & contrast

On white

5.93
#B22788 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#B22788 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22788
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22788#FFFFFF#000000##FFFFFF
##B227881.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37558B
Deuteranopia (green-blind)
#636C85
Tritanopia (blue-blind)
#BE2755
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b22788;
/* rgb */ color: rgb(178, 39, 136);
/* oklch */ color: oklch(52.9% 0.197 343.4);
Tailwind
colors: {
  custom: {
    50: '#cd71ab',
    500: '#b22788',
    950: '#000000',
  },
}
SCSS
$custom: #b22788;
$custom-light: #cd71ab;
$custom-dark: #000000;
JSON
{
  "hex": "#b22788",
  "rgb": {
    "r": 178,
    "g": 39,
    "b": 136
  },
  "hsl": {
    "h": 318.129,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52883,
    "c": 0.19746,
    "h": 343.4
  },
  "luminance": 0.12694
}

Semantic roles & 50–950 ramp

primary
#B22788
secondary
#6DC889
accent
#E77341
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B22788

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

Preview Lab → · Contrast checker → · Palette generator →

#B22788 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva