#B2229D#B2229D

#B2229D is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.6% C 0.215 H 335.2°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#B2229D
RGBrgb(178, 34, 157)
HSLhsl(309, 68%, 42%)
HSVhsv(309, 81%, 70%)
CMYKcmyk(0%, 80.9%, 11.8%, 30.2%)
CIE-LABlab(42.83, 66.85, -33.03)
CIE-LCHlch(42.83, 74.57, 333.70°)
OKLaboklab(53.59% 0.1955 -0.0904)
OKLCHoklch(53.59% 0.215 335.2)
XYZxyz(25.0183, 13.0457, 33.0922)
Luminance0.1304 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2229D #22B237
analogous
#7F22B2 #B2229D #B22255
triadic
#B2229D #9DB222 #229DB2
tetradic
#B2229D #B27F22 #22B237 #2255B2
square
#B2229D #B27F22 #22B237 #2255B2
split-complementary
#B2229D #55B222 #22B27F
monochromatic
#4B0E42 #7F1870 #B2229D #D938C2 #E36CD1

Accessibility & contrast

On white

5.82
#B2229D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#B2229D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B2229D
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2229D#FFFFFF#000000##FFFFFF
##B2229D1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2158A0
Deuteranopia (green-blind)
#596C9A
Tritanopia (blue-blind)
#BB305F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b2229d;
/* rgb */ color: rgb(178, 34, 157);
/* oklch */ color: oklch(53.6% 0.215 335.2);
Tailwind
colors: {
  custom: {
    50: '#cd70ba',
    500: '#b2229d',
    950: '#000000',
  },
}
SCSS
$custom: #b2229d;
$custom-light: #cd70ba;
$custom-dark: #000000;
JSON
{
  "hex": "#b2229d",
  "rgb": {
    "r": 178,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 308.75,
    "s": 67.925,
    "l": 41.569
  },
  "oklch": {
    "l": 0.53589,
    "c": 0.21541,
    "h": 335.2
  },
  "luminance": 0.13043
}

Semantic roles & 50–950 ramp

primary
#B2229D
secondary
#67C975
accent
#EB563D
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B2229D

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

Preview Lab → · Contrast checker → · Palette generator →

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