#B2228B#B2228B

#B2228B is a mid, highly saturated pink. Relative luminance 0.125; OKLCH L 52.7% C 0.204 H 341.9°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#B2228B
RGBrgb(178, 34, 139)
HSLhsl(316, 68%, 42%)
HSVhsv(316, 81%, 70%)
CMYKcmyk(0%, 80.9%, 21.9%, 30.2%)
CIE-LABlab(41.96, 64.40, -23.48)
CIE-LCHlch(41.96, 68.54, 339.96°)
OKLaboklab(52.68% 0.1938 -0.0632)
OKLCHoklch(52.68% 0.204 341.9)
XYZxyz(23.5932, 12.4756, 25.5866)
Luminance0.1247 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2228B #22B249
analogous
#9122B2 #B2228B #B22243
triadic
#B2228B #8BB222 #228BB2
tetradic
#B2228B #B29122 #22B249 #2243B2
square
#B2228B #B29122 #22B249 #2243B2
split-complementary
#B2228B #43B222 #22B291
monochromatic
#4B0E3B #7F1863 #B2228B #D938AD #E36CC3

Accessibility & contrast

On white

6.01
#B2228B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#B2228B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B2228B
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2228B#FFFFFF#000000##FFFFFF
##B2228B1.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32548E
Deuteranopia (green-blind)
#616B88
Tritanopia (blue-blind)
#BD2555
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b2228b;
/* rgb */ color: rgb(178, 34, 139);
/* oklch */ color: oklch(52.7% 0.204 341.9);
Tailwind
colors: {
  custom: {
    50: '#cd6fad',
    500: '#b2228b',
    950: '#000000',
  },
}
SCSS
$custom: #b2228b;
$custom-light: #cd6fad;
$custom-dark: #000000;
JSON
{
  "hex": "#b2228b",
  "rgb": {
    "r": 178,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 316.25,
    "s": 67.925,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52682,
    "c": 0.20384,
    "h": 341.9
  },
  "luminance": 0.12473
}

Semantic roles & 50–950 ramp

primary
#B2228B
secondary
#67C981
accent
#EB6C3D
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #B2228B

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

Preview Lab → · Contrast checker → · Palette generator →

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