#B21F8F#B21F8F

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

Color values

HEX#B21F8F
RGBrgb(178, 31, 143)
HSLhsl(314, 70%, 41%)
HSVhsv(314, 83%, 70%)
CMYKcmyk(0%, 82.6%, 19.7%, 30.2%)
CIE-LABlab(41.89, 65.65, -26.03)
CIE-LCHlch(41.89, 70.62, 338.37°)
OKLaboklab(52.69% 0.1966 -0.0704)
OKLCHoklch(52.69% 0.209 340.3)
XYZxyz(23.8088, 12.4306, 27.1268)
Luminance0.1243 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B21F8F #1FB242
analogous
#8B1FB2 #B21F8F #B21F45
triadic
#B21F8F #8FB21F #1F8FB2
tetradic
#B21F8F #B28B1F #1FB242 #1F45B2
square
#B21F8F #B28B1F #1FB242 #1F45B2
split-complementary
#B21F8F #45B21F #1FB28B
monochromatic
#4A0D3B #7E1665 #B21F8F #DB33B3 #E567C7

Accessibility & contrast

On white

6.02
#B21F8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#B21F8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B21F8F
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B21F8F#FFFFFF#000000##FFFFFF
##B21F8F1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5492
Deuteranopia (green-blind)
#5E6B8C
Tritanopia (blue-blind)
#BD2557
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b21f8f;
/* rgb */ color: rgb(178, 31, 143);
/* oklch */ color: oklch(52.7% 0.209 340.3);
Tailwind
colors: {
  custom: {
    50: '#cd6eb0',
    500: '#b21f8f',
    950: '#000000',
  },
}
SCSS
$custom: #b21f8f;
$custom-light: #cd6eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#b21f8f",
  "rgb": {
    "r": 178,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 314.286,
    "s": 70.335,
    "l": 40.98
  },
  "oklch": {
    "l": 0.52692,
    "c": 0.20878,
    "h": 340.3
  },
  "luminance": 0.12428
}

Semantic roles & 50–950 ramp

primary
#B21F8F
secondary
#63CA7B
accent
#ED653B
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #B21F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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