#B4229E#B4229E

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

Color values

HEX#B4229E
RGBrgb(180, 34, 158)
HSLhsl(309, 68%, 42%)
HSVhsv(309, 81%, 71%)
CMYKcmyk(0%, 81.1%, 12.2%, 29.4%)
CIE-LABlab(43.24, 67.42, -32.97)
CIE-LCHlch(43.24, 75.05, 333.94°)
OKLaboklab(53.96% 0.1975 -0.0902)
OKLCHoklch(53.96% 0.217 335.5)
XYZxyz(25.5664, 13.3184, 33.5654)
Luminance0.1332 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4229E #22B438
analogous
#8122B4 #B4229E #B42255
triadic
#B4229E #9EB422 #229EB4
tetradic
#B4229E #B48122 #22B438 #2255B4
square
#B4229E #B48122 #22B438 #2255B4
split-complementary
#B4229E #55B422 #22B481
monochromatic
#4D0F44 #811871 #B4229E #DA3AC2 #E36DD2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B4229E#FFFFFF#000000##FFFFFF
##B4229E1.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2259A1
Deuteranopia (green-blind)
#5B6E9B
Tritanopia (blue-blind)
#BD3060
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b4229e;
/* rgb */ color: rgb(180, 34, 158);
/* oklch */ color: oklch(54.0% 0.217 335.5);
Tailwind
colors: {
  custom: {
    50: '#cf70bb',
    500: '#b4229e',
    950: '#000000',
  },
}
SCSS
$custom: #b4229e;
$custom-light: #cf70bb;
$custom-dark: #000000;
JSON
{
  "hex": "#b4229e",
  "rgb": {
    "r": 180,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 309.041,
    "s": 68.224,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53963,
    "c": 0.21709,
    "h": 335.5
  },
  "luminance": 0.13316
}

Semantic roles & 50–950 ramp

primary
#B4229E
secondary
#68CA77
accent
#EB573D
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B4229E

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

Preview Lab → · Contrast checker → · Palette generator →

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