#B4218C#B4218C

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

Color values

HEX#B4218C
RGBrgb(180, 33, 140)
HSLhsl(316, 69%, 42%)
HSVhsv(316, 82%, 71%)
CMYKcmyk(0%, 81.7%, 22.2%, 29.4%)
CIE-LABlab(42.29, 65.23, -23.56)
CIE-LCHlch(42.29, 69.35, 340.14°)
OKLaboklab(53% 0.1965 -0.0633)
OKLCHoklch(53% 0.206 342.1)
XYZxyz(24.1008, 12.6871, 25.9855)
Luminance0.1268 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4218C #21B449
analogous
#9321B4 #B4218C #B42142
triadic
#B4218C #8CB421 #218CB4
tetradic
#B4218C #B49321 #21B449 #2142B4
square
#B4218C #B49321 #21B449 #2142B4
split-complementary
#B4218C #42B421 #21B493
monochromatic
#4D0E3C #801864 #B4218C #DA38AE #E46BC3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B4218C#FFFFFF#000000##FFFFFF
##B4218C1.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)
#32558F
Deuteranopia (green-blind)
#626C89
Tritanopia (blue-blind)
#C02356
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b4218c;
/* rgb */ color: rgb(180, 33, 140);
/* oklch */ color: oklch(53.0% 0.206 342.1);
Tailwind
colors: {
  custom: {
    50: '#cf6fae',
    500: '#b4218c',
    950: '#000000',
  },
}
SCSS
$custom: #b4218c;
$custom-light: #cf6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#b4218c",
  "rgb": {
    "r": 180,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 316.327,
    "s": 69.014,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52998,
    "c": 0.20646,
    "h": 342.1
  },
  "luminance": 0.12684
}

Semantic roles & 50–950 ramp

primary
#B4218C
secondary
#67CA82
accent
#EC6C3C
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #B4218C

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

Preview Lab → · Contrast checker → · Palette generator →

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