#B4228E#B4228E

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

Color values

HEX#B4228E
RGBrgb(180, 34, 142)
HSLhsl(316, 68%, 42%)
HSVhsv(316, 81%, 71%)
CMYKcmyk(0%, 81.1%, 21.1%, 29.4%)
CIE-LABlab(42.46, 65.24, -24.50)
CIE-LCHlch(42.46, 69.69, 339.41°)
OKLaboklab(53.16% 0.196 -0.066)
OKLCHoklch(53.16% 0.207 341.4)
XYZxyz(24.2777, 12.8029, 26.7786)
Luminance0.1280 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4228E #22B448
analogous
#9122B4 #B4228E #B42245
triadic
#B4228E #8EB422 #228EB4
tetradic
#B4228E #B49122 #22B448 #2245B4
square
#B4228E #B49122 #22B448 #2245B4
split-complementary
#B4228E #45B422 #22B491
monochromatic
#4D0F3D #811865 #B4228E #DA3AB0 #E36DC5

Accessibility & contrast

On white

5.90
#B4228E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#B4228E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B4228E
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4228E#FFFFFF#000000##FFFFFF
##B4228E1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315591
Deuteranopia (green-blind)
#616C8B
Tritanopia (blue-blind)
#BF2657
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b4228e;
/* rgb */ color: rgb(180, 34, 142);
/* oklch */ color: oklch(53.2% 0.207 341.4);
Tailwind
colors: {
  custom: {
    50: '#cf70af',
    500: '#b4228e',
    950: '#000000',
  },
}
SCSS
$custom: #b4228e;
$custom-light: #cf70af;
$custom-dark: #000000;
JSON
{
  "hex": "#b4228e",
  "rgb": {
    "r": 180,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 315.616,
    "s": 68.224,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53156,
    "c": 0.20683,
    "h": 341.4
  },
  "luminance": 0.128
}

Semantic roles & 50–950 ramp

primary
#B4228E
secondary
#68CA82
accent
#EB6A3D
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B4228E

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

Preview Lab → · Contrast checker → · Palette generator →

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