#B21E8F#B21E8F

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

Color values

HEX#B21E8F
RGBrgb(178, 30, 143)
HSLhsl(314, 71%, 41%)
HSVhsv(314, 83%, 70%)
CMYKcmyk(0%, 83.1%, 19.7%, 30.2%)
CIE-LABlab(41.81, 65.88, -26.16)
CIE-LCHlch(41.81, 70.89, 338.35°)
OKLaboklab(52.63% 0.1973 -0.0707)
OKLCHoklch(52.63% 0.21 340.3)
XYZxyz(23.7831, 12.3792, 27.1182)
Luminance0.1238 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B21E8F #1EB241
analogous
#8B1EB2 #B21E8F #B21E45
triadic
#B21E8F #8FB21E #1E8FB2
tetradic
#B21E8F #B28B1E #1EB241 #1E45B2
square
#B21E8F #B28B1E #1EB241 #1E45B2
split-complementary
#B21E8F #45B21E #1EB28B
monochromatic
#490C3B #7E1565 #B21E8F #DC31B4 #E565C7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B21E8F#FFFFFF#000000##FFFFFF
##B21E8F1.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)
#2C5492
Deuteranopia (green-blind)
#5E6B8C
Tritanopia (blue-blind)
#BD2457
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b21e8f;
/* rgb */ color: rgb(178, 30, 143);
/* oklch */ color: oklch(52.6% 0.210 340.3);
Tailwind
colors: {
  custom: {
    50: '#cd6eb0',
    500: '#b21e8f',
    950: '#000000',
  },
}
SCSS
$custom: #b21e8f;
$custom-light: #cd6eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#b21e8f",
  "rgb": {
    "r": 178,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 314.189,
    "s": 71.154,
    "l": 40.784
  },
  "oklch": {
    "l": 0.52634,
    "c": 0.20956,
    "h": 340.3
  },
  "luminance": 0.12377
}

Semantic roles & 50–950 ramp

primary
#B21E8F
secondary
#62CA7A
accent
#EE643A
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #B21E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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