#B4228F#B4228F

#B4228F is a mid, highly saturated pink. Relative luminance 0.128; OKLCH L 53.2% C 0.207 H 341.0°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#B4228F
RGBrgb(180, 34, 143)
HSLhsl(315, 68%, 42%)
HSVhsv(315, 81%, 71%)
CMYKcmyk(0%, 81.1%, 20.6%, 29.4%)
CIE-LABlab(42.51, 65.37, -25.04)
CIE-LCHlch(42.51, 70.00, 339.04°)
OKLaboklab(53.2% 0.1961 -0.0675)
OKLCHoklch(53.2% 0.207 341)
XYZxyz(24.3532, 12.8331, 27.1758)
Luminance0.1283 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4228F #22B447
analogous
#9022B4 #B4228F #B42246
triadic
#B4228F #8FB422 #228FB4
tetradic
#B4228F #B49022 #22B447 #2246B4
square
#B4228F #B49022 #22B447 #2246B4
split-complementary
#B4228F #46B422 #22B490
monochromatic
#4D0F3D #811866 #B4228F #DA3AB1 #E36DC5

Accessibility & contrast

On white

5.89
#B4228F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#B4228F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B4228F
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4228F#FFFFFF#000000##FFFFFF
##B4228F1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305692
Deuteranopia (green-blind)
#616D8C
Tritanopia (blue-blind)
#BF2658
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b4228f;
/* rgb */ color: rgb(180, 34, 143);
/* oklch */ color: oklch(53.2% 0.207 341.0);
Tailwind
colors: {
  custom: {
    50: '#cf70b0',
    500: '#b4228f',
    950: '#000000',
  },
}
SCSS
$custom: #b4228f;
$custom-light: #cf70b0;
$custom-dark: #000000;
JSON
{
  "hex": "#b4228f",
  "rgb": {
    "r": 180,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 315.205,
    "s": 68.224,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53203,
    "c": 0.20743,
    "h": 341
  },
  "luminance": 0.12831
}

Semantic roles & 50–950 ramp

primary
#B4228F
secondary
#68CA81
accent
#EB693D
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B4228F

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

Preview Lab → · Contrast checker → · Palette generator →

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