#B22787#B22787

#B22787 is a mid, vivid pink. Relative luminance 0.127; OKLCH L 52.8% C 0.197 H 343.8°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#B22787
RGBrgb(178, 39, 135)
HSLhsl(319, 64%, 43%)
HSVhsv(319, 78%, 70%)
CMYKcmyk(0%, 78.1%, 24.2%, 30.2%)
CIE-LABlab(42.26, 62.53, -20.58)
CIE-LCHlch(42.26, 65.83, 341.78°)
OKLaboklab(52.84% 0.189 -0.055)
OKLCHoklch(52.84% 0.197 343.8)
XYZxyz(23.4597, 12.6678, 24.1266)
Luminance0.1267 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22787 #27B252
analogous
#9727B2 #B22787 #B22742
triadic
#B22787 #87B227 #2787B2
tetradic
#B22787 #B29727 #27B252 #2742B2
square
#B22787 #B29727 #27B252 #2742B2
split-complementary
#B22787 #42B227 #27B297
monochromatic
#4E113B #801C61 #B22787 #D541A7 #E073BF

Accessibility & contrast

On white

5.94
#B22787 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#B22787 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22787
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22787#FFFFFF#000000##FFFFFF
##B227871.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38558A
Deuteranopia (green-blind)
#636C84
Tritanopia (blue-blind)
#BE2655
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b22787;
/* rgb */ color: rgb(178, 39, 135);
/* oklch */ color: oklch(52.8% 0.197 343.8);
Tailwind
colors: {
  custom: {
    50: '#cd71aa',
    500: '#b22787',
    950: '#000000',
  },
}
SCSS
$custom: #b22787;
$custom-light: #cd71aa;
$custom-dark: #000000;
JSON
{
  "hex": "#b22787",
  "rgb": {
    "r": 178,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 318.561,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52838,
    "c": 0.19686,
    "h": 343.8
  },
  "luminance": 0.12665
}

Semantic roles & 50–950 ramp

primary
#B22787
secondary
#6DC889
accent
#E77441
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B22787

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

Preview Lab → · Contrast checker → · Palette generator →

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