#B21E8D#B21E8D

#B21E8D is a mid, highly saturated pink. Relative luminance 0.123; OKLCH L 52.5% C 0.208 H 341.0°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#B21E8D
RGBrgb(178, 30, 141)
HSLhsl(315, 71%, 41%)
HSVhsv(315, 83%, 70%)
CMYKcmyk(0%, 83.1%, 20.8%, 30.2%)
CIE-LABlab(41.72, 65.62, -25.08)
CIE-LCHlch(41.72, 70.25, 339.08°)
OKLaboklab(52.54% 0.197 -0.0677)
OKLCHoklch(52.54% 0.208 341)
XYZxyz(23.6329, 12.3191, 26.3274)
Luminance0.1232 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B21E8D #1EB243
analogous
#8D1EB2 #B21E8D #B21E43
triadic
#B21E8D #8DB21E #1E8DB2
tetradic
#B21E8D #B28D1E #1EB243 #1E43B2
square
#B21E8D #B28D1E #1EB243 #1E43B2
split-complementary
#B21E8D #43B21E #1EB28D
monochromatic
#490C3A #7E1564 #B21E8D #DC31B1 #E565C5

Accessibility & contrast

On white

6.06
#B21E8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#B21E8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B21E8D
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B21E8D#FFFFFF#000000##FFFFFF
##B21E8D1.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5490
Deuteranopia (green-blind)
#5F6B8A
Tritanopia (blue-blind)
#BD2356
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #b21e8d;
/* rgb */ color: rgb(178, 30, 141);
/* oklch */ color: oklch(52.5% 0.208 341.0);
Tailwind
colors: {
  custom: {
    50: '#cd6eae',
    500: '#b21e8d',
    950: '#000000',
  },
}
SCSS
$custom: #b21e8d;
$custom-light: #cd6eae;
$custom-dark: #000000;
JSON
{
  "hex": "#b21e8d",
  "rgb": {
    "r": 178,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 315,
    "s": 71.154,
    "l": 40.784
  },
  "oklch": {
    "l": 0.52536,
    "c": 0.20833,
    "h": 341
  },
  "luminance": 0.12317
}

Semantic roles & 50–950 ramp

primary
#B21E8D
secondary
#62CA7C
accent
#EE673A
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #B21E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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