#B22998#B22998

#B22998 is a mid, highly saturated pink. Relative luminance 0.133; OKLCH L 53.8% C 0.206 H 337.1°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#B22998
RGBrgb(178, 41, 152)
HSLhsl(311, 63%, 43%)
HSVhsv(311, 77%, 70%)
CMYKcmyk(0%, 77%, 14.6%, 30.2%)
CIE-LABlab(43.24, 64.24, -29.38)
CIE-LCHlch(43.24, 70.64, 335.42°)
OKLaboklab(53.8% 0.1895 -0.08)
OKLCHoklch(53.8% 0.206 337.1)
XYZxyz(24.8210, 13.3202, 30.9635)
Luminance0.1332 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22998 #29B243
analogous
#8729B2 #B22998 #B22953
triadic
#B22998 #98B229 #2998B2
tetradic
#B22998 #B28729 #29B243 #2953B2
square
#B22998 #B28729 #29B243 #2953B2
split-complementary
#B22998 #53B229 #29B287
monochromatic
#4F1243 #801E6E #B22998 #D444B9 #DF76CB

Accessibility & contrast

On white

5.73
#B22998 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#B22998 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22998
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22998#FFFFFF#000000##FFFFFF
##B229981.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E599B
Deuteranopia (green-blind)
#5E6E95
Tritanopia (blue-blind)
#BC325E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b22998;
/* rgb */ color: rgb(178, 41, 152);
/* oklch */ color: oklch(53.8% 0.206 337.1);
Tailwind
colors: {
  custom: {
    50: '#cd72b6',
    500: '#b22998',
    950: '#000000',
  },
}
SCSS
$custom: #b22998;
$custom-light: #cd72b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b22998",
  "rgb": {
    "r": 178,
    "g": 41,
    "b": 152
  },
  "hsl": {
    "h": 311.387,
    "s": 62.557,
    "l": 42.941
  },
  "oklch": {
    "l": 0.53802,
    "c": 0.20568,
    "h": 337.1
  },
  "luminance": 0.13318
}

Semantic roles & 50–950 ramp

primary
#B22998
secondary
#70C780
accent
#E66142
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B22998

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

Preview Lab → · Contrast checker → · Palette generator →

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