#B4228B#B4228B

#B4228B is a mid, highly saturated pink. Relative luminance 0.127; OKLCH L 53.0% C 0.205 H 342.6°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#B4228B
RGBrgb(180, 34, 139)
HSLhsl(317, 68%, 42%)
HSVhsv(317, 81%, 71%)
CMYKcmyk(0%, 81.1%, 22.8%, 29.4%)
CIE-LABlab(42.33, 64.85, -22.89)
CIE-LCHlch(42.33, 68.77, 340.56°)
OKLaboklab(53.01% 0.1956 -0.0614)
OKLCHoklch(53.01% 0.205 342.6)
XYZxyz(24.0555, 12.7140, 25.6083)
Luminance0.1271 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4228B #22B44B
analogous
#9422B4 #B4228B #B42242
triadic
#B4228B #8BB422 #228BB4
tetradic
#B4228B #B49422 #22B44B #2242B4
square
#B4228B #B49422 #22B44B #2242B4
split-complementary
#B4228B #42B422 #22B494
monochromatic
#4D0F3B #811863 #B4228B #DA3AAD #E36DC2

Accessibility & contrast

On white

5.93
#B4228B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#B4228B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B4228B
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4228B#FFFFFF#000000##FFFFFF
##B4228B1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33558E
Deuteranopia (green-blind)
#626C88
Tritanopia (blue-blind)
#C02355
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b4228b;
/* rgb */ color: rgb(180, 34, 139);
/* oklch */ color: oklch(53.0% 0.205 342.6);
Tailwind
colors: {
  custom: {
    50: '#cf6fad',
    500: '#b4228b',
    950: '#000000',
  },
}
SCSS
$custom: #b4228b;
$custom-light: #cf6fad;
$custom-dark: #000000;
JSON
{
  "hex": "#b4228b",
  "rgb": {
    "r": 180,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 316.849,
    "s": 68.224,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53014,
    "c": 0.20501,
    "h": 342.6
  },
  "luminance": 0.12711
}

Semantic roles & 50–950 ramp

primary
#B4228B
secondary
#68CA84
accent
#EB6E3D
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #B4228B

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

Preview Lab → · Contrast checker → · Palette generator →

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