#B2278B#B2278B

#B2278B is a mid, vivid pink. Relative luminance 0.128; OKLCH L 53.0% C 0.199 H 342.1°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#B2278B
RGBrgb(178, 39, 139)
HSLhsl(317, 64%, 43%)
HSVhsv(317, 78%, 70%)
CMYKcmyk(0%, 78.1%, 21.9%, 30.2%)
CIE-LABlab(42.43, 63.04, -22.75)
CIE-LCHlch(42.43, 67.02, 340.16°)
OKLaboklab(53.02% 0.1897 -0.0611)
OKLCHoklch(53.02% 0.199 342.1)
XYZxyz(23.7467, 12.7826, 25.6378)
Luminance0.1278 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2278B #27B24E
analogous
#9427B2 #B2278B #B22745
triadic
#B2278B #8BB227 #278BB2
tetradic
#B2278B #B29427 #27B24E #2745B2
square
#B2278B #B29427 #27B24E #2745B2
split-complementary
#B2278B #45B227 #27B294
monochromatic
#4E113D #801C64 #B2278B #D541AC #E073C2

Accessibility & contrast

On white

5.91
#B2278B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#B2278B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B2278B
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2278B#FFFFFF#000000##FFFFFF
##B2278B1.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36568E
Deuteranopia (green-blind)
#626C88
Tritanopia (blue-blind)
#BD2957
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b2278b;
/* rgb */ color: rgb(178, 39, 139);
/* oklch */ color: oklch(53.0% 0.199 342.1);
Tailwind
colors: {
  custom: {
    50: '#cd71ad',
    500: '#b2278b',
    950: '#000000',
  },
}
SCSS
$custom: #b2278b;
$custom-light: #cd71ad;
$custom-dark: #000000;
JSON
{
  "hex": "#b2278b",
  "rgb": {
    "r": 178,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 316.835,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53022,
    "c": 0.19927,
    "h": 342.1
  },
  "luminance": 0.1278
}

Semantic roles & 50–950 ramp

primary
#B2278B
secondary
#6DC887
accent
#E76F41
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B2278B

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

Preview Lab → · Contrast checker → · Palette generator →

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