#B2218A#B2218A

#B2218A is a mid, highly saturated pink. Relative luminance 0.124; OKLCH L 52.6% C 0.204 H 342.3°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#B2218A
RGBrgb(178, 33, 138)
HSLhsl(317, 69%, 41%)
HSVhsv(317, 81%, 70%)
CMYKcmyk(0%, 81.5%, 22.5%, 30.2%)
CIE-LABlab(41.83, 64.52, -23.08)
CIE-LCHlch(41.83, 68.52, 340.32°)
OKLaboklab(52.57% 0.1945 -0.062)
OKLCHoklch(52.57% 0.204 342.3)
XYZxyz(23.4923, 12.3902, 25.1942)
Luminance0.1239 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2218A #21B249
analogous
#9221B2 #B2218A #B22142
triadic
#B2218A #8AB221 #218AB2
tetradic
#B2218A #B29221 #21B249 #2142B2
square
#B2218A #B29221 #21B249 #2142B2
split-complementary
#B2218A #42B221 #21B292
monochromatic
#4B0E3A #7E1762 #B2218A #DA36AD #E36AC2

Accessibility & contrast

On white

6.04
#B2218A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#B2218A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B2218A
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2218A#FFFFFF#000000##FFFFFF
##B2218A1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32548D
Deuteranopia (green-blind)
#616B87
Tritanopia (blue-blind)
#BE2355
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b2218a;
/* rgb */ color: rgb(178, 33, 138);
/* oklch */ color: oklch(52.6% 0.204 342.3);
Tailwind
colors: {
  custom: {
    50: '#cd6fac',
    500: '#b2218a',
    950: '#000000',
  },
}
SCSS
$custom: #b2218a;
$custom-light: #cd6fac;
$custom-dark: #000000;
JSON
{
  "hex": "#b2218a",
  "rgb": {
    "r": 178,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 316.552,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52571,
    "c": 0.2041,
    "h": 342.3
  },
  "luminance": 0.12388
}

Semantic roles & 50–950 ramp

primary
#B2218A
secondary
#66C981
accent
#EC6D3C
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #B2218A

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

Preview Lab → · Contrast checker → · Palette generator →

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