#B2228D#B2228D

#B2228D is a mid, highly saturated pink. Relative luminance 0.125; OKLCH L 52.8% C 0.205 H 341.2°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#B2228D
RGBrgb(178, 34, 141)
HSLhsl(315, 68%, 42%)
HSVhsv(315, 81%, 70%)
CMYKcmyk(0%, 80.9%, 20.8%, 30.2%)
CIE-LABlab(42.05, 64.66, -24.56)
CIE-LCHlch(42.05, 69.17, 339.20°)
OKLaboklab(52.78% 0.1941 -0.0662)
OKLCHoklch(52.78% 0.205 341.2)
XYZxyz(23.7407, 12.5346, 26.3633)
Luminance0.1253 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2228D #22B247
analogous
#8F22B2 #B2228D #B22245
triadic
#B2228D #8DB222 #228DB2
tetradic
#B2228D #B28F22 #22B247 #2245B2
square
#B2228D #B28F22 #22B247 #2245B2
split-complementary
#B2228D #45B222 #22B28F
monochromatic
#4B0E3C #7F1864 #B2228D #D938B0 #E36CC4

Accessibility & contrast

On white

5.99
#B2228D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B2228D
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2228D#FFFFFF#000000##FFFFFF
##B2228D1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305590
Deuteranopia (green-blind)
#606B8A
Tritanopia (blue-blind)
#BD2656
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b2228d;
/* rgb */ color: rgb(178, 34, 141);
/* oklch */ color: oklch(52.8% 0.205 341.2);
Tailwind
colors: {
  custom: {
    50: '#cd6fae',
    500: '#b2228d',
    950: '#000000',
  },
}
SCSS
$custom: #b2228d;
$custom-light: #cd6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#b2228d",
  "rgb": {
    "r": 178,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 315.417,
    "s": 67.925,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52777,
    "c": 0.20506,
    "h": 341.2
  },
  "luminance": 0.12532
}

Semantic roles & 50–950 ramp

primary
#B2228D
secondary
#67C980
accent
#EB6A3D
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #B2228D

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

Preview Lab → · Contrast checker → · Palette generator →

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