#B4229C#B4229C

#B4229C is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.9% C 0.216 H 336.2°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#B4229C
RGBrgb(180, 34, 156)
HSLhsl(310, 68%, 42%)
HSVhsv(310, 81%, 71%)
CMYKcmyk(0%, 81.1%, 13.3%, 29.4%)
CIE-LABlab(43.14, 67.14, -31.93)
CIE-LCHlch(43.14, 74.34, 334.57°)
OKLaboklab(53.86% 0.1974 -0.0872)
OKLCHoklch(53.86% 0.216 336.2)
XYZxyz(25.3956, 13.2501, 32.6661)
Luminance0.1325 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4229C #22B43A
analogous
#8322B4 #B4229C #B42253
triadic
#B4229C #9CB422 #229CB4
tetradic
#B4229C #B48322 #22B43A #2253B4
square
#B4229C #B48322 #22B43A #2253B4
split-complementary
#B4229C #53B422 #22B483
monochromatic
#4D0F43 #81186F #B4229C #DA3ABF #E36DD0

Accessibility & contrast

On white

5.75
#B4229C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#B4229C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B4229C
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4229C#FFFFFF#000000##FFFFFF
##B4229C1.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25589F
Deuteranopia (green-blind)
#5B6D99
Tritanopia (blue-blind)
#BE2F5F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b4229c;
/* rgb */ color: rgb(180, 34, 156);
/* oklch */ color: oklch(53.9% 0.216 336.2);
Tailwind
colors: {
  custom: {
    50: '#cf70b9',
    500: '#b4229c',
    950: '#000000',
  },
}
SCSS
$custom: #b4229c;
$custom-light: #cf70b9;
$custom-dark: #000000;
JSON
{
  "hex": "#b4229c",
  "rgb": {
    "r": 180,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 309.863,
    "s": 68.224,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53857,
    "c": 0.21576,
    "h": 336.2
  },
  "luminance": 0.13248
}

Semantic roles & 50–950 ramp

primary
#B4229C
secondary
#68CA78
accent
#EB593D
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B4229C

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

Preview Lab → · Contrast checker → · Palette generator →

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