#B21F8D#B21F8D

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

Color values

HEX#B21F8D
RGBrgb(178, 31, 141)
HSLhsl(315, 70%, 41%)
HSVhsv(315, 83%, 70%)
CMYKcmyk(0%, 82.6%, 20.8%, 30.2%)
CIE-LABlab(41.80, 65.39, -24.96)
CIE-LCHlch(41.80, 69.99, 339.11°)
OKLaboklab(52.59% 0.1963 -0.0673)
OKLCHoklch(52.59% 0.208 341.1)
XYZxyz(23.6586, 12.3706, 26.3359)
Luminance0.1237 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B21F8D #1FB244
analogous
#8D1FB2 #B21F8D #B21F43
triadic
#B21F8D #8DB21F #1F8DB2
tetradic
#B21F8D #B28D1F #1FB244 #1F43B2
square
#B21F8D #B28D1F #1FB244 #1F43B2
split-complementary
#B21F8D #43B21F #1FB28D
monochromatic
#4A0D3A #7E1664 #B21F8D #DB33B1 #E567C5

Accessibility & contrast

On white

6.05
#B21F8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#B21F8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B21F8D
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B21F8D#FFFFFF#000000##FFFFFF
##B21F8D1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b21f8d;
/* rgb */ color: rgb(178, 31, 141);
/* oklch */ color: oklch(52.6% 0.208 341.1);
Tailwind
colors: {
  custom: {
    50: '#cd6eae',
    500: '#b21f8d',
    950: '#000000',
  },
}
SCSS
$custom: #b21f8d;
$custom-light: #cd6eae;
$custom-dark: #000000;
JSON
{
  "hex": "#b21f8d",
  "rgb": {
    "r": 178,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 315.102,
    "s": 70.335,
    "l": 40.98
  },
  "oklch": {
    "l": 0.52594,
    "c": 0.20755,
    "h": 341.1
  },
  "luminance": 0.12368
}

Semantic roles & 50–950 ramp

primary
#B21F8D
secondary
#63CA7D
accent
#ED683B
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #B21F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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