#B2228C#B2228C

#B2228C is a mid, highly saturated pink. Relative luminance 0.125; OKLCH L 52.7% C 0.204 H 341.6°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#B2228C
RGBrgb(178, 34, 140)
HSLhsl(316, 68%, 42%)
HSVhsv(316, 81%, 70%)
CMYKcmyk(0%, 80.9%, 21.3%, 30.2%)
CIE-LABlab(42.01, 64.53, -24.02)
CIE-LCHlch(42.01, 68.85, 339.58°)
OKLaboklab(52.73% 0.194 -0.0647)
OKLCHoklch(52.73% 0.204 341.6)
XYZxyz(23.6666, 12.5050, 25.9732)
Luminance0.1250 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2228C #22B248
analogous
#9022B2 #B2228C #B22244
triadic
#B2228C #8CB222 #228CB2
tetradic
#B2228C #B29022 #22B248 #2244B2
square
#B2228C #B29022 #22B248 #2244B2
split-complementary
#B2228C #44B222 #22B290
monochromatic
#4B0E3B #7F1864 #B2228C #D938AF #E36CC3

Accessibility & contrast

On white

6.00
#B2228C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#B2228C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B2228C
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2228C#FFFFFF#000000##FFFFFF
##B2228C1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31548F
Deuteranopia (green-blind)
#606B89
Tritanopia (blue-blind)
#BD2556
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b2228c;
/* rgb */ color: rgb(178, 34, 140);
/* oklch */ color: oklch(52.7% 0.204 341.6);
Tailwind
colors: {
  custom: {
    50: '#cd6fae',
    500: '#b2228c',
    950: '#000000',
  },
}
SCSS
$custom: #b2228c;
$custom-light: #cd6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#b2228c",
  "rgb": {
    "r": 178,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 315.833,
    "s": 67.925,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52729,
    "c": 0.20445,
    "h": 341.6
  },
  "luminance": 0.12502
}

Semantic roles & 50–950 ramp

primary
#B2228C
secondary
#67C981
accent
#EB6B3D
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #B2228C

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

Preview Lab → · Contrast checker → · Palette generator →

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