#B22B9F#B22B9F

#B22B9F is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.3% C 0.208 H 334.6°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#B22B9F
RGBrgb(178, 43, 159)
HSLhsl(308, 61%, 43%)
HSVhsv(308, 76%, 70%)
CMYKcmyk(0%, 75.8%, 10.7%, 30.2%)
CIE-LABlab(43.80, 64.66, -32.72)
CIE-LCHlch(43.80, 72.47, 333.16°)
OKLaboklab(54.31% 0.1883 -0.0895)
OKLCHoklch(54.31% 0.208 334.6)
XYZxyz(25.4823, 13.6982, 34.0961)
Luminance0.1370 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22B9F #2BB23E
analogous
#812BB2 #B22B9F #B22B5C
triadic
#B22B9F #9FB22B #2B9FB2
tetradic
#B22B9F #B2812B #2BB23E #2B5CB2
square
#B22B9F #B2812B #2BB23E #2B5CB2
split-complementary
#B22B9F #5CB22B #2BB281
monochromatic
#4F1347 #811F73 #B22B9F #D348BF #DF79D0

Accessibility & contrast

On white

5.62
#B22B9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#B22B9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22B9F
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22B9F#FFFFFF#000000##FFFFFF
##B22B9F1.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b22b9f;
/* rgb */ color: rgb(178, 43, 159);
/* oklch */ color: oklch(54.3% 0.208 334.6);
Tailwind
colors: {
  custom: {
    50: '#cd73bc',
    500: '#b22b9f',
    950: '#000000',
  },
}
SCSS
$custom: #b22b9f;
$custom-light: #cd73bc;
$custom-dark: #000000;
JSON
{
  "hex": "#b22b9f",
  "rgb": {
    "r": 178,
    "g": 43,
    "b": 159
  },
  "hsl": {
    "h": 308.444,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54314,
    "c": 0.20849,
    "h": 334.6
  },
  "luminance": 0.13696
}

Semantic roles & 50–950 ramp

primary
#B22B9F
secondary
#72C77E
accent
#E45A44
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B22B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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