#B22A9F#B22A9F

#B22A9F is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.2% C 0.209 H 334.6°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#B22A9F
RGBrgb(178, 42, 159)
HSLhsl(308, 62%, 43%)
HSVhsv(308, 76%, 70%)
CMYKcmyk(0%, 76.4%, 10.7%, 30.2%)
CIE-LABlab(43.69, 64.96, -32.88)
CIE-LCHlch(43.69, 72.81, 333.15°)
OKLaboklab(54.24% 0.1892 -0.09)
OKLCHoklch(54.24% 0.209 334.6)
XYZxyz(25.4464, 13.6264, 34.0841)
Luminance0.1362 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22A9F #2AB23D
analogous
#812AB2 #B22A9F #B22A5B
triadic
#B22A9F #9FB22A #2A9FB2
tetradic
#B22A9F #B2812A #2AB23D #2A5BB2
square
#B22A9F #B2812A #2AB23D #2A5BB2
split-complementary
#B22A9F #5BB22A #2AB281
monochromatic
#4F1347 #801E73 #B22A9F #D346C0 #DF77D1

Accessibility & contrast

On white

5.64
#B22A9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#B22A9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22A9F
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22A9F#FFFFFF#000000##FFFFFF
##B22A9F1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285BA2
Deuteranopia (green-blind)
#5B6E9C
Tritanopia (blue-blind)
#BB3763
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b22a9f;
/* rgb */ color: rgb(178, 42, 159);
/* oklch */ color: oklch(54.2% 0.209 334.6);
Tailwind
colors: {
  custom: {
    50: '#cd73bc',
    500: '#b22a9f',
    950: '#000000',
  },
}
SCSS
$custom: #b22a9f;
$custom-light: #cd73bc;
$custom-dark: #000000;
JSON
{
  "hex": "#b22a9f",
  "rgb": {
    "r": 178,
    "g": 42,
    "b": 159
  },
  "hsl": {
    "h": 308.382,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.54238,
    "c": 0.20949,
    "h": 334.6
  },
  "luminance": 0.13624
}

Semantic roles & 50–950 ramp

primary
#B22A9F
secondary
#71C77D
accent
#E55A43
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B22A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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