#B2228F#B2228F

#B2228F is a mid, highly saturated pink. Relative luminance 0.126; OKLCH L 52.9% C 0.206 H 340.4°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#B2228F
RGBrgb(178, 34, 143)
HSLhsl(315, 68%, 42%)
HSVhsv(315, 81%, 70%)
CMYKcmyk(0%, 80.9%, 19.7%, 30.2%)
CIE-LABlab(42.15, 64.92, -25.64)
CIE-LCHlch(42.15, 69.80, 338.45°)
OKLaboklab(52.87% 0.1943 -0.0693)
OKLCHoklch(52.87% 0.206 340.4)
XYZxyz(23.8908, 12.5947, 27.1541)
Luminance0.1259 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2228F #22B245
analogous
#8D22B2 #B2228F #B22247
triadic
#B2228F #8FB222 #228FB2
tetradic
#B2228F #B28D22 #22B245 #2247B2
square
#B2228F #B28D22 #22B245 #2247B2
split-complementary
#B2228F #47B222 #22B28D
monochromatic
#4B0E3C #7F1866 #B2228F #D938B2 #E36CC6

Accessibility & contrast

On white

5.97
#B2228F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#B2228F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B2228F
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2228F#FFFFFF#000000##FFFFFF
##B2228F1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5592
Deuteranopia (green-blind)
#5F6B8C
Tritanopia (blue-blind)
#BD2758
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b2228f;
/* rgb */ color: rgb(178, 34, 143);
/* oklch */ color: oklch(52.9% 0.206 340.4);
Tailwind
colors: {
  custom: {
    50: '#cd6fb0',
    500: '#b2228f',
    950: '#000000',
  },
}
SCSS
$custom: #b2228f;
$custom-light: #cd6fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#b2228f",
  "rgb": {
    "r": 178,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 314.583,
    "s": 67.925,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52874,
    "c": 0.2063,
    "h": 340.4
  },
  "luminance": 0.12592
}

Semantic roles & 50–950 ramp

primary
#B2228F
secondary
#67C97F
accent
#EB673D
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #B2228F

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

Preview Lab → · Contrast checker → · Palette generator →

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