#B21F95#B21F95

#B21F95 is a mid, highly saturated pink. Relative luminance 0.126; OKLCH L 53.0% C 0.213 H 338.0°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#B21F95
RGBrgb(178, 31, 149)
HSLhsl(312, 70%, 41%)
HSVhsv(312, 83%, 70%)
CMYKcmyk(0%, 82.6%, 16.3%, 30.2%)
CIE-LABlab(42.18, 66.45, -29.23)
CIE-LCHlch(42.18, 72.60, 336.26°)
OKLaboklab(52.99% 0.1972 -0.0795)
OKLCHoklch(52.99% 0.213 338)
XYZxyz(24.2755, 12.6173, 29.5849)
Luminance0.1262 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B21F95 #1FB23C
analogous
#851FB2 #B21F95 #B21F4B
triadic
#B21F95 #95B21F #1F95B2
tetradic
#B21F95 #B2851F #1FB23C #1F4BB2
square
#B21F95 #B2851F #1FB23C #1F4BB2
split-complementary
#B21F95 #4BB21F #1FB285
monochromatic
#4A0D3E #7E1669 #B21F95 #DB33BA #E567CC

Accessibility & contrast

On white

5.96
#B21F95 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B21F95
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B21F95#FFFFFF#000000##FFFFFF
##B21F951.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275598
Deuteranopia (green-blind)
#5C6B92
Tritanopia (blue-blind)
#BC295A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b21f95;
/* rgb */ color: rgb(178, 31, 149);
/* oklch */ color: oklch(53.0% 0.213 338.0);
Tailwind
colors: {
  custom: {
    50: '#cd6fb4',
    500: '#b21f95',
    950: '#000000',
  },
}
SCSS
$custom: #b21f95;
$custom-light: #cd6fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#b21f95",
  "rgb": {
    "r": 178,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 311.837,
    "s": 70.335,
    "l": 40.98
  },
  "oklch": {
    "l": 0.52992,
    "c": 0.21256,
    "h": 338
  },
  "luminance": 0.12615
}

Semantic roles & 50–950 ramp

primary
#B21F95
secondary
#63CA77
accent
#ED5E3B
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B21F95

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

Preview Lab → · Contrast checker → · Palette generator →

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