#B02871#B02871

#B02871 is a mid, vivid pink. Relative luminance 0.119; OKLCH L 51.7% C 0.183 H 352.9°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#B02871
RGBrgb(176, 40, 113)
HSLhsl(328, 63%, 42%)
HSVhsv(328, 77%, 69%)
CMYKcmyk(0%, 77.3%, 35.8%, 31%)
CIE-LABlab(41.12, 59.11, -8.75)
CIE-LCHlch(41.12, 59.75, 351.58°)
OKLaboklab(51.66% 0.1814 -0.0224)
OKLCHoklch(51.66% 0.183 352.9)
XYZxyz(21.6453, 11.9426, 16.7849)
Luminance0.1194 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B02871 #28B067
analogous
#AB28B0 #B02871 #B0282D
triadic
#B02871 #71B028 #2871B0
tetradic
#B02871 #B0AB28 #28B067 #282DB0
square
#B02871 #B0AB28 #28B067 #282DB0
split-complementary
#B02871 #2DB028 #28B0AB
monochromatic
#4C1131 #7E1D51 #B02871 #D44190 #DF73AD

Accessibility & contrast

On white

6.20
#B02871 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#B02871 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B02871
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B02871#FFFFFF#000000##FFFFFF
##B028711.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425173
Deuteranopia (green-blind)
#696A6E
Tritanopia (blue-blind)
#BE1A49
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #b02871;
/* rgb */ color: rgb(176, 40, 113);
/* oklch */ color: oklch(51.7% 0.183 352.9);
Tailwind
colors: {
  custom: {
    50: '#cc7099',
    500: '#b02871',
    950: '#000000',
  },
}
SCSS
$custom: #b02871;
$custom-light: #cc7099;
$custom-dark: #000000;
JSON
{
  "hex": "#b02871",
  "rgb": {
    "r": 176,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 327.794,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.51662,
    "c": 0.18279,
    "h": 352.9
  },
  "luminance": 0.1194
}

Semantic roles & 50–950 ramp

primary
#B02871
secondary
#6DC697
accent
#E68E42
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080E
muted
#837B7E

Preview Lab

Preview with #B02871

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

Preview Lab → · Contrast checker → · Palette generator →

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