#B4229F#B4229F

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

Color values

HEX#B4229F
RGBrgb(180, 34, 159)
HSLhsl(309, 68%, 42%)
HSVhsv(309, 81%, 71%)
CMYKcmyk(0%, 81.1%, 11.7%, 29.4%)
CIE-LABlab(43.29, 67.56, -33.49)
CIE-LCHlch(43.29, 75.41, 333.63°)
OKLaboklab(54.02% 0.1975 -0.0917)
OKLCHoklch(54.02% 0.218 335.1)
XYZxyz(25.6528, 13.3529, 34.0205)
Luminance0.1335 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4229F #22B437
analogous
#8022B4 #B4229F #B42256
triadic
#B4229F #9FB422 #229FB4
tetradic
#B4229F #B48022 #22B437 #2256B4
square
#B4229F #B48022 #22B437 #2256B4
split-complementary
#B4229F #56B422 #22B480
monochromatic
#4D0F44 #811872 #B4229F #DA3AC3 #E36DD2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B4229F#FFFFFF#000000##FFFFFF
##B4229F1.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)
#2159A2
Deuteranopia (green-blind)
#5A6E9C
Tritanopia (blue-blind)
#BD3161
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b4229f;
/* rgb */ color: rgb(180, 34, 159);
/* oklch */ color: oklch(54.0% 0.218 335.1);
Tailwind
colors: {
  custom: {
    50: '#cf70bc',
    500: '#b4229f',
    950: '#000000',
  },
}
SCSS
$custom: #b4229f;
$custom-light: #cf70bc;
$custom-dark: #000000;
JSON
{
  "hex": "#b4229f",
  "rgb": {
    "r": 180,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 308.63,
    "s": 68.224,
    "l": 41.961
  },
  "oklch": {
    "l": 0.54016,
    "c": 0.21776,
    "h": 335.1
  },
  "luminance": 0.13351
}

Semantic roles & 50–950 ramp

primary
#B4229F
secondary
#68CA76
accent
#EB563D
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B4229F

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

Preview Lab → · Contrast checker → · Palette generator →

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