#B22B9C#B22B9C

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

Color values

HEX#B22B9C
RGBrgb(178, 43, 156)
HSLhsl(310, 61%, 43%)
HSVhsv(310, 76%, 70%)
CMYKcmyk(0%, 75.8%, 12.4%, 30.2%)
CIE-LABlab(43.65, 64.22, -31.15)
CIE-LCHlch(43.65, 71.38, 334.12°)
OKLaboklab(54.16% 0.1881 -0.0851)
OKLCHoklch(54.16% 0.206 335.7)
XYZxyz(25.2251, 13.5953, 32.7417)
Luminance0.1359 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22B9C #2BB241
analogous
#842BB2 #B22B9C #B22B58
triadic
#B22B9C #9CB22B #2B9CB2
tetradic
#B22B9C #B2842B #2BB241 #2B58B2
square
#B22B9C #B2842B #2BB241 #2B58B2
split-complementary
#B22B9C #58B22B #2BB284
monochromatic
#4F1346 #811F71 #B22B9C #D348BC #DF79CE

Accessibility & contrast

On white

5.65
#B22B9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B22B9C
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22B9C#FFFFFF#000000##FFFFFF
##B22B9C1.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5A9F
Deuteranopia (green-blind)
#5D6E99
Tritanopia (blue-blind)
#BB3661
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b22b9c;
/* rgb */ color: rgb(178, 43, 156);
/* oklch */ color: oklch(54.2% 0.206 335.7);
Tailwind
colors: {
  custom: {
    50: '#cd73b9',
    500: '#b22b9c',
    950: '#000000',
  },
}
SCSS
$custom: #b22b9c;
$custom-light: #cd73b9;
$custom-dark: #000000;
JSON
{
  "hex": "#b22b9c",
  "rgb": {
    "r": 178,
    "g": 43,
    "b": 156
  },
  "hsl": {
    "h": 309.778,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54157,
    "c": 0.2064,
    "h": 335.7
  },
  "luminance": 0.13593
}

Semantic roles & 50–950 ramp

primary
#B22B9C
secondary
#72C780
accent
#E45E44
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B22B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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