#B21F94#B21F94

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

Color values

HEX#B21F94
RGBrgb(178, 31, 148)
HSLhsl(312, 70%, 41%)
HSVhsv(312, 83%, 70%)
CMYKcmyk(0%, 82.6%, 16.9%, 30.2%)
CIE-LABlab(42.13, 66.32, -28.70)
CIE-LCHlch(42.13, 72.26, 336.60°)
OKLaboklab(52.94% 0.1971 -0.0779)
OKLCHoklch(52.94% 0.212 338.4)
XYZxyz(24.1960, 12.5855, 29.1662)
Luminance0.1258 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B21F94 #1FB23D
analogous
#861FB2 #B21F94 #B21F4A
triadic
#B21F94 #94B21F #1F94B2
tetradic
#B21F94 #B2861F #1FB23D #1F4AB2
square
#B21F94 #B2861F #1FB23D #1F4AB2
split-complementary
#B21F94 #4AB21F #1FB286
monochromatic
#4A0D3D #7E1669 #B21F94 #DB33B9 #E567CB

Accessibility & contrast

On white

5.97
#B21F94 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#B21F94 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B21F94
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B21F94#FFFFFF#000000##FFFFFF
##B21F941.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285597
Deuteranopia (green-blind)
#5C6B91
Tritanopia (blue-blind)
#BC285A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b21f94;
/* rgb */ color: rgb(178, 31, 148);
/* oklch */ color: oklch(52.9% 0.212 338.4);
Tailwind
colors: {
  custom: {
    50: '#cd6eb3',
    500: '#b21f94',
    950: '#000000',
  },
}
SCSS
$custom: #b21f94;
$custom-light: #cd6eb3;
$custom-dark: #000000;
JSON
{
  "hex": "#b21f94",
  "rgb": {
    "r": 178,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 312.245,
    "s": 70.335,
    "l": 40.98
  },
  "oklch": {
    "l": 0.52941,
    "c": 0.21192,
    "h": 338.4
  },
  "luminance": 0.12583
}

Semantic roles & 50–950 ramp

primary
#B21F94
secondary
#63CA78
accent
#ED5F3B
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B21F94

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

Preview Lab → · Contrast checker → · Palette generator →

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