#B22BA8#B22BA8

#B22BA8 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.8% C 0.215 H 331.4°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#B22BA8
RGBrgb(178, 43, 168)
HSLhsl(304, 61%, 43%)
HSVhsv(304, 76%, 70%)
CMYKcmyk(0%, 75.8%, 5.6%, 30.2%)
CIE-LABlab(44.26, 66.02, -37.35)
CIE-LCHlch(44.26, 75.86, 330.50°)
OKLaboklab(54.8% 0.1887 -0.1029)
OKLCHoklch(54.8% 0.215 331.4)
XYZxyz(26.2919, 14.0220, 38.3600)
Luminance0.1402 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22BA8 #2BB235
analogous
#782BB2 #B22BA8 #B22B65
triadic
#B22BA8 #A8B22B #2BA8B2
tetradic
#B22BA8 #B2782B #2BB235 #2B65B2
square
#B22BA8 #B2782B #2BB235 #2B65B2
split-complementary
#B22BA8 #65B22B #2BB278
monochromatic
#4F134B #811F79 #B22BA8 #D348C8 #DF79D7

Accessibility & contrast

On white

5.52
#B22BA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#B22BA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22BA8
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22BA8#FFFFFF#000000##FFFFFF
##B22BA81.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5DAB
Deuteranopia (green-blind)
#576FA5
Tritanopia (blue-blind)
#B93C68
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b22ba8;
/* rgb */ color: rgb(178, 43, 168);
/* oklch */ color: oklch(54.8% 0.215 331.4);
Tailwind
colors: {
  custom: {
    50: '#cd73c2',
    500: '#b22ba8',
    950: '#000000',
  },
}
SCSS
$custom: #b22ba8;
$custom-light: #cd73c2;
$custom-dark: #000000;
JSON
{
  "hex": "#b22ba8",
  "rgb": {
    "r": 178,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 304.444,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.548,
    "c": 0.21492,
    "h": 331.4
  },
  "luminance": 0.1402
}

Semantic roles & 50–950 ramp

primary
#B22BA8
secondary
#72C778
accent
#E44F44
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B22BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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