#B21F93#B21F93

#B21F93 is a mid, highly saturated pink. Relative luminance 0.126; OKLCH L 52.9% C 0.211 H 338.8°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#B21F93
RGBrgb(178, 31, 147)
HSLhsl(313, 70%, 41%)
HSVhsv(313, 83%, 70%)
CMYKcmyk(0%, 82.6%, 17.4%, 30.2%)
CIE-LABlab(42.08, 66.18, -28.17)
CIE-LCHlch(42.08, 71.93, 336.95°)
OKLaboklab(52.89% 0.197 -0.0764)
OKLCHoklch(52.89% 0.211 338.8)
XYZxyz(24.1172, 12.5540, 28.7511)
Luminance0.1255 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B21F93 #1FB23E
analogous
#871FB2 #B21F93 #B21F49
triadic
#B21F93 #93B21F #1F93B2
tetradic
#B21F93 #B2871F #1FB23E #1F49B2
square
#B21F93 #B2871F #1FB23E #1F49B2
split-complementary
#B21F93 #49B21F #1FB287
monochromatic
#4A0D3D #7E1668 #B21F93 #DB33B8 #E567CA

Accessibility & contrast

On white

5.98
#B21F93 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#B21F93 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B21F93
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B21F93#FFFFFF#000000##FFFFFF
##B21F931.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295596
Deuteranopia (green-blind)
#5D6B90
Tritanopia (blue-blind)
#BC2859
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b21f93;
/* rgb */ color: rgb(178, 31, 147);
/* oklch */ color: oklch(52.9% 0.211 338.8);
Tailwind
colors: {
  custom: {
    50: '#cd6eb3',
    500: '#b21f93',
    950: '#000000',
  },
}
SCSS
$custom: #b21f93;
$custom-light: #cd6eb3;
$custom-dark: #000000;
JSON
{
  "hex": "#b21f93",
  "rgb": {
    "r": 178,
    "g": 31,
    "b": 147
  },
  "hsl": {
    "h": 312.653,
    "s": 70.335,
    "l": 40.98
  },
  "oklch": {
    "l": 0.52891,
    "c": 0.21128,
    "h": 338.8
  },
  "luminance": 0.12552
}

Semantic roles & 50–950 ramp

primary
#B21F93
secondary
#63CA79
accent
#ED603B
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B21F93

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

Preview Lab → · Contrast checker → · Palette generator →

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