#B5229C#B5229C

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

Color values

HEX#B5229C
RGBrgb(181, 34, 156)
HSLhsl(310, 68%, 42%)
HSVhsv(310, 81%, 71%)
CMYKcmyk(0%, 81.2%, 13.8%, 29%)
CIE-LABlab(43.32, 67.35, -31.63)
CIE-LCHlch(43.32, 74.41, 334.84°)
OKLaboklab(54.02% 0.1983 -0.0863)
OKLCHoklch(54.02% 0.216 336.5)
XYZxyz(25.6293, 13.3706, 32.6770)
Luminance0.1337 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5229C #22B53B
analogous
#8522B5 #B5229C #B52253
triadic
#B5229C #9CB522 #229CB5
tetradic
#B5229C #B58522 #22B53B #2253B5
square
#B5229C #B58522 #22B53B #2253B5
split-complementary
#B5229C #53B522 #22B585
monochromatic
#4E0F43 #811870 #B5229C #DA3ABF #E46ED0

Accessibility & contrast

On white

5.72
#B5229C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B5229C
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5229C#FFFFFF#000000##FFFFFF
##B5229C1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26589F
Deuteranopia (green-blind)
#5C6E99
Tritanopia (blue-blind)
#BF2E5F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b5229c;
/* rgb */ color: rgb(181, 34, 156);
/* oklch */ color: oklch(54.0% 0.216 336.5);
Tailwind
colors: {
  custom: {
    50: '#cf70b9',
    500: '#b5229c',
    950: '#000000',
  },
}
SCSS
$custom: #b5229c;
$custom-light: #cf70b9;
$custom-dark: #000000;
JSON
{
  "hex": "#b5229c",
  "rgb": {
    "r": 181,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 310.204,
    "s": 68.372,
    "l": 42.157
  },
  "oklch": {
    "l": 0.54019,
    "c": 0.21627,
    "h": 336.5
  },
  "luminance": 0.13368
}

Semantic roles & 50–950 ramp

primary
#B5229C
secondary
#69CA79
accent
#EB5A3D
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B5229C

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

Preview Lab → · Contrast checker → · Palette generator →

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