#B4228C#B4228C

#B4228C is a mid, highly saturated pink. Relative luminance 0.127; OKLCH L 53.1% C 0.206 H 342.2°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#B4228C
RGBrgb(180, 34, 140)
HSLhsl(316, 68%, 42%)
HSVhsv(316, 81%, 71%)
CMYKcmyk(0%, 81.1%, 22.2%, 29.4%)
CIE-LABlab(42.37, 64.98, -23.43)
CIE-LCHlch(42.37, 69.08, 340.18°)
OKLaboklab(53.06% 0.1957 -0.063)
OKLCHoklch(53.06% 0.206 342.2)
XYZxyz(24.1289, 12.7434, 25.9949)
Luminance0.1274 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4228C #22B44A
analogous
#9322B4 #B4228C #B42243
triadic
#B4228C #8CB422 #228CB4
tetradic
#B4228C #B49322 #22B44A #2243B4
square
#B4228C #B49322 #22B44A #2243B4
split-complementary
#B4228C #43B422 #22B493
monochromatic
#4D0F3C #811864 #B4228C #DA3AAE #E36DC3

Accessibility & contrast

On white

5.92
#B4228C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#B4228C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B4228C
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4228C#FFFFFF#000000##FFFFFF
##B4228C1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33558F
Deuteranopia (green-blind)
#626C89
Tritanopia (blue-blind)
#C02456
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b4228c;
/* rgb */ color: rgb(180, 34, 140);
/* oklch */ color: oklch(53.1% 0.206 342.2);
Tailwind
colors: {
  custom: {
    50: '#cf6fae',
    500: '#b4228c',
    950: '#000000',
  },
}
SCSS
$custom: #b4228c;
$custom-light: #cf6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#b4228c",
  "rgb": {
    "r": 180,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 316.438,
    "s": 68.224,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53061,
    "c": 0.20561,
    "h": 342.2
  },
  "luminance": 0.12741
}

Semantic roles & 50–950 ramp

primary
#B4228C
secondary
#68CA83
accent
#EB6C3D
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #B4228C

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

Preview Lab → · Contrast checker → · Palette generator →

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