#B2288B#B2288B

#B2288B is a mid, vivid pink. Relative luminance 0.128; OKLCH L 53.1% C 0.198 H 342.2°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#B2288B
RGBrgb(178, 40, 139)
HSLhsl(317, 63%, 43%)
HSVhsv(317, 78%, 70%)
CMYKcmyk(0%, 77.5%, 21.9%, 30.2%)
CIE-LABlab(42.53, 62.75, -22.60)
CIE-LCHlch(42.53, 66.70, 340.20°)
OKLaboklab(53.1% 0.1888 -0.0607)
OKLCHoklch(53.1% 0.198 342.2)
XYZxyz(23.7799, 12.8491, 25.6489)
Luminance0.1285 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2288B #28B24F
analogous
#9428B2 #B2288B #B22846
triadic
#B2288B #8BB228 #288BB2
tetradic
#B2288B #B29428 #28B24F #2846B2
square
#B2288B #B29428 #28B24F #2846B2
split-complementary
#B2288B #46B228 #28B294
monochromatic
#4E123D #801D64 #B2288B #D543AB #E075C2

Accessibility & contrast

On white

5.88
#B2288B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#B2288B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B2288B
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2288B#FFFFFF#000000##FFFFFF
##B2288B1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b2288b;
/* rgb */ color: rgb(178, 40, 139);
/* oklch */ color: oklch(53.1% 0.198 342.2);
Tailwind
colors: {
  custom: {
    50: '#cd71ad',
    500: '#b2288b',
    950: '#000000',
  },
}
SCSS
$custom: #b2288b;
$custom-light: #cd71ad;
$custom-dark: #000000;
JSON
{
  "hex": "#b2288b",
  "rgb": {
    "r": 178,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 316.957,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53095,
    "c": 0.1983,
    "h": 342.2
  },
  "luminance": 0.12847
}

Semantic roles & 50–950 ramp

primary
#B2288B
secondary
#6FC788
accent
#E67041
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B2288B

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

Preview Lab → · Contrast checker → · Palette generator →

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