#B5229B#B5229B

#B5229B is a mid, highly saturated pink. Relative luminance 0.133; OKLCH L 54.0% C 0.216 H 336.8°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#B5229B
RGBrgb(181, 34, 155)
HSLhsl(311, 68%, 42%)
HSVhsv(311, 81%, 71%)
CMYKcmyk(0%, 81.2%, 14.4%, 29%)
CIE-LABlab(43.27, 67.21, -31.11)
CIE-LCHlch(43.27, 74.06, 335.16°)
OKLaboklab(53.97% 0.1982 -0.0848)
OKLCHoklch(53.97% 0.216 336.8)
XYZxyz(25.5450, 13.3368, 32.2329)
Luminance0.1333 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5229B #22B53C
analogous
#8522B5 #B5229B #B52252
triadic
#B5229B #9BB522 #229BB5
tetradic
#B5229B #B58522 #22B53C #2252B5
square
#B5229B #B58522 #22B53C #2252B5
split-complementary
#B5229B #52B522 #22B585
monochromatic
#4E0F43 #81186F #B5229B #DA3ABE #E46ECF

Accessibility & contrast

On white

5.73
#B5229B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#B5229B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5229B
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5229B#FFFFFF#000000##FFFFFF
##B5229B1.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27589E
Deuteranopia (green-blind)
#5D6E98
Tritanopia (blue-blind)
#BF2E5E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b5229b;
/* rgb */ color: rgb(181, 34, 155);
/* oklch */ color: oklch(54.0% 0.216 336.8);
Tailwind
colors: {
  custom: {
    50: '#cf70b9',
    500: '#b5229b',
    950: '#000000',
  },
}
SCSS
$custom: #b5229b;
$custom-light: #cf70b9;
$custom-dark: #000000;
JSON
{
  "hex": "#b5229b",
  "rgb": {
    "r": 181,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 310.612,
    "s": 68.372,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53967,
    "c": 0.21561,
    "h": 336.8
  },
  "luminance": 0.13334
}

Semantic roles & 50–950 ramp

primary
#B5229B
secondary
#69CA7A
accent
#EB5B3D
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B5229B

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

Preview Lab → · Contrast checker → · Palette generator →

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