#B22588#B22588

#B22588 is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.7% C 0.199 H 343.3°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#B22588
RGBrgb(178, 37, 136)
HSLhsl(318, 66%, 42%)
HSVhsv(318, 79%, 70%)
CMYKcmyk(0%, 79.2%, 23.6%, 30.2%)
CIE-LABlab(42.11, 63.22, -21.43)
CIE-LCHlch(42.11, 66.75, 341.28°)
OKLaboklab(52.74% 0.1909 -0.0574)
OKLCHoklch(52.74% 0.199 343.3)
XYZxyz(23.4665, 12.5682, 24.4779)
Luminance0.1257 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22588 #25B24F
analogous
#9525B2 #B22588 #B22542
triadic
#B22588 #88B225 #2588B2
tetradic
#B22588 #B29525 #25B24F #2542B2
square
#B22588 #B29525 #25B24F #2542B2
split-complementary
#B22588 #42B225 #25B295
monochromatic
#4D103B #7F1A61 #B22588 #D73DA9 #E170C0

Accessibility & contrast

On white

5.98
#B22588 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#B22588 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22588
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22588#FFFFFF#000000##FFFFFF
##B225881.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36558B
Deuteranopia (green-blind)
#626C85
Tritanopia (blue-blind)
#BE2554
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b22588;
/* rgb */ color: rgb(178, 37, 136);
/* oklch */ color: oklch(52.7% 0.199 343.3);
Tailwind
colors: {
  custom: {
    50: '#cd70ab',
    500: '#b22588',
    950: '#000000',
  },
}
SCSS
$custom: #b22588;
$custom-light: #cd70ab;
$custom-dark: #000000;
JSON
{
  "hex": "#b22588",
  "rgb": {
    "r": 178,
    "g": 37,
    "b": 136
  },
  "hsl": {
    "h": 317.872,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52741,
    "c": 0.19936,
    "h": 343.3
  },
  "luminance": 0.12566
}

Semantic roles & 50–950 ramp

primary
#B22588
secondary
#6BC887
accent
#E9723F
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B22588

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

Preview Lab → · Contrast checker → · Palette generator →

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