#B4228A#B4228A

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

Color values

HEX#B4228A
RGBrgb(180, 34, 138)
HSLhsl(317, 68%, 42%)
HSVhsv(317, 81%, 71%)
CMYKcmyk(0%, 81.1%, 23.3%, 29.4%)
CIE-LABlab(42.28, 64.73, -22.34)
CIE-LCHlch(42.28, 68.48, 340.95°)
OKLaboklab(52.97% 0.1954 -0.0599)
OKLCHoklch(52.97% 0.204 343)
XYZxyz(23.9828, 12.6849, 25.2253)
Luminance0.1268 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4228A #22B44C
analogous
#9522B4 #B4228A #B42241
triadic
#B4228A #8AB422 #228AB4
tetradic
#B4228A #B49522 #22B44C #2241B4
square
#B4228A #B49522 #22B44C #2241B4
split-complementary
#B4228A #41B422 #22B495
monochromatic
#4D0F3B #811863 #B4228A #DA3AAC #E36DC1

Accessibility & contrast

On white

5.94
#B4228A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B4228A
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4228A#FFFFFF#000000##FFFFFF
##B4228A1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34558D
Deuteranopia (green-blind)
#636C87
Tritanopia (blue-blind)
#C02355
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b4228a;
/* rgb */ color: rgb(180, 34, 138);
/* oklch */ color: oklch(53.0% 0.204 343.0);
Tailwind
colors: {
  custom: {
    50: '#cf6fac',
    500: '#b4228a',
    950: '#000000',
  },
}
SCSS
$custom: #b4228a;
$custom-light: #cf6fac;
$custom-dark: #000000;
JSON
{
  "hex": "#b4228a",
  "rgb": {
    "r": 180,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 317.26,
    "s": 68.224,
    "l": 41.961
  },
  "oklch": {
    "l": 0.52967,
    "c": 0.20442,
    "h": 343
  },
  "luminance": 0.12682
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B4228A

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

Preview Lab → · Contrast checker → · Palette generator →

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