#B4218A#B4218A

#B4218A is a mid, highly saturated pink. Relative luminance 0.126; OKLCH L 52.9% C 0.205 H 342.9°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#B4218A
RGBrgb(180, 33, 138)
HSLhsl(317, 69%, 42%)
HSVhsv(317, 82%, 71%)
CMYKcmyk(0%, 81.7%, 23.3%, 29.4%)
CIE-LABlab(42.20, 64.98, -22.48)
CIE-LCHlch(42.20, 68.75, 340.92°)
OKLaboklab(52.91% 0.1962 -0.0603)
OKLCHoklch(52.91% 0.205 342.9)
XYZxyz(23.9546, 12.6286, 25.2159)
Luminance0.1263 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4218A #21B44B
analogous
#9521B4 #B4218A #B42141
triadic
#B4218A #8AB421 #218AB4
tetradic
#B4218A #B49521 #21B44B #2141B4
square
#B4218A #B49521 #21B44B #2141B4
split-complementary
#B4218A #41B421 #21B495
monochromatic
#4D0E3B #801862 #B4218A #DA38AC #E46BC2

Accessibility & contrast

On white

5.96
#B4218A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#B4218A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B4218A
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4218A#FFFFFF#000000##FFFFFF
##B4218A1.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33548D
Deuteranopia (green-blind)
#626C87
Tritanopia (blue-blind)
#C02255
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b4218a;
/* rgb */ color: rgb(180, 33, 138);
/* oklch */ color: oklch(52.9% 0.205 342.9);
Tailwind
colors: {
  custom: {
    50: '#cf6fac',
    500: '#b4218a',
    950: '#000000',
  },
}
SCSS
$custom: #b4218a;
$custom-light: #cf6fac;
$custom-dark: #000000;
JSON
{
  "hex": "#b4218a",
  "rgb": {
    "r": 180,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 317.143,
    "s": 69.014,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52905,
    "c": 0.20526,
    "h": 342.9
  },
  "luminance": 0.12626
}

Semantic roles & 50–950 ramp

primary
#B4218A
secondary
#67CA83
accent
#EC6E3C
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #B4218A

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

Preview Lab → · Contrast checker → · Palette generator →

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