#B2228E#B2228E

#B2228E is a mid, highly saturated pink. Relative luminance 0.126; OKLCH L 52.8% C 0.206 H 340.8°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#B2228E
RGBrgb(178, 34, 142)
HSLhsl(315, 68%, 42%)
HSVhsv(315, 81%, 70%)
CMYKcmyk(0%, 80.9%, 20.2%, 30.2%)
CIE-LABlab(42.10, 64.79, -25.10)
CIE-LCHlch(42.10, 69.48, 338.82°)
OKLaboklab(52.83% 0.1942 -0.0677)
OKLCHoklch(52.83% 0.206 340.8)
XYZxyz(23.8154, 12.5645, 26.7569)
Luminance0.1256 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2228E #22B246
analogous
#8E22B2 #B2228E #B22246
triadic
#B2228E #8EB222 #228EB2
tetradic
#B2228E #B28E22 #22B246 #2246B2
square
#B2228E #B28E22 #22B246 #2246B2
split-complementary
#B2228E #46B222 #22B28E
monochromatic
#4B0E3C #7F1865 #B2228E #D938B1 #E36CC5

Accessibility & contrast

On white

5.98
#B2228E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#B2228E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B2228E
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2228E#FFFFFF#000000##FFFFFF
##B2228E1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305591
Deuteranopia (green-blind)
#5F6B8B
Tritanopia (blue-blind)
#BD2757
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b2228e;
/* rgb */ color: rgb(178, 34, 142);
/* oklch */ color: oklch(52.8% 0.206 340.8);
Tailwind
colors: {
  custom: {
    50: '#cd6faf',
    500: '#b2228e',
    950: '#000000',
  },
}
SCSS
$custom: #b2228e;
$custom-light: #cd6faf;
$custom-dark: #000000;
JSON
{
  "hex": "#b2228e",
  "rgb": {
    "r": 178,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 315,
    "s": 67.925,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52825,
    "c": 0.20568,
    "h": 340.8
  },
  "luminance": 0.12562
}

Semantic roles & 50–950 ramp

primary
#B2228E
secondary
#67C97F
accent
#EB683D
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #B2228E

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

Preview Lab → · Contrast checker → · Palette generator →

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