#B4229D#B4229D

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

Color values

HEX#B4229D
RGBrgb(180, 34, 157)
HSLhsl(309, 68%, 42%)
HSVhsv(309, 81%, 71%)
CMYKcmyk(0%, 81.1%, 12.8%, 29.4%)
CIE-LABlab(43.19, 67.28, -32.45)
CIE-LCHlch(43.19, 74.69, 334.25°)
OKLaboklab(53.91% 0.1974 -0.0887)
OKLCHoklch(53.91% 0.216 335.8)
XYZxyz(25.4806, 13.2841, 33.1139)
Luminance0.1328 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4229D #22B439
analogous
#8222B4 #B4229D #B42254
triadic
#B4229D #9DB422 #229DB4
tetradic
#B4229D #B48222 #22B439 #2254B4
square
#B4229D #B48222 #22B439 #2254B4
split-complementary
#B4229D #54B422 #22B482
monochromatic
#4D0F43 #811870 #B4229D #DA3AC0 #E36DD1

Accessibility & contrast

On white

5.74
#B4229D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#B4229D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B4229D
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4229D#FFFFFF#000000##FFFFFF
##B4229D1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2458A0
Deuteranopia (green-blind)
#5B6E9A
Tritanopia (blue-blind)
#BD2F5F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b4229d;
/* rgb */ color: rgb(180, 34, 157);
/* oklch */ color: oklch(53.9% 0.216 335.8);
Tailwind
colors: {
  custom: {
    50: '#cf70ba',
    500: '#b4229d',
    950: '#000000',
  },
}
SCSS
$custom: #b4229d;
$custom-light: #cf70ba;
$custom-dark: #000000;
JSON
{
  "hex": "#b4229d",
  "rgb": {
    "r": 180,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 309.452,
    "s": 68.224,
    "l": 41.961
  },
  "oklch": {
    "l": 0.5391,
    "c": 0.21642,
    "h": 335.8
  },
  "luminance": 0.13282
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B4229D

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

Preview Lab → · Contrast checker → · Palette generator →

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