#B2278A#B2278A

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

Color values

HEX#B2278A
RGBrgb(178, 39, 138)
HSLhsl(317, 64%, 43%)
HSVhsv(317, 78%, 70%)
CMYKcmyk(0%, 78.1%, 22.5%, 30.2%)
CIE-LABlab(42.39, 62.91, -22.21)
CIE-LCHlch(42.39, 66.72, 340.55°)
OKLaboklab(52.98% 0.1895 -0.0596)
OKLCHoklch(52.98% 0.199 342.5)
XYZxyz(23.6739, 12.7535, 25.2547)
Luminance0.1275 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2278A #27B24F
analogous
#9427B2 #B2278A #B22745
triadic
#B2278A #8AB227 #278AB2
tetradic
#B2278A #B29427 #27B24F #2745B2
square
#B2278A #B29427 #27B24F #2745B2
split-complementary
#B2278A #45B227 #27B294
monochromatic
#4E113C #801C63 #B2278A #D541AB #E073C1

Accessibility & contrast

On white

5.92
#B2278A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#B2278A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B2278A
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2278A#FFFFFF#000000##FFFFFF
##B2278A1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36568D
Deuteranopia (green-blind)
#626C87
Tritanopia (blue-blind)
#BE2856
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b2278a;
/* rgb */ color: rgb(178, 39, 138);
/* oklch */ color: oklch(53.0% 0.199 342.5);
Tailwind
colors: {
  custom: {
    50: '#cd71ac',
    500: '#b2278a',
    950: '#000000',
  },
}
SCSS
$custom: #b2278a;
$custom-light: #cd71ac;
$custom-dark: #000000;
JSON
{
  "hex": "#b2278a",
  "rgb": {
    "r": 178,
    "g": 39,
    "b": 138
  },
  "hsl": {
    "h": 317.266,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52976,
    "c": 0.19866,
    "h": 342.5
  },
  "luminance": 0.12751
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B2278A

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

Preview Lab → · Contrast checker → · Palette generator →

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