#B22BB8#B22BB8

#B22BB8 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.7% C 0.227 H 326.2°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#B22BB8
RGBrgb(178, 43, 184)
HSLhsl(297, 62%, 45%)
HSVhsv(297, 77%, 72%)
CMYKcmyk(3.3%, 76.6%, 0%, 27.8%)
CIE-LABlab(45.16, 68.58, -45.38)
CIE-LCHlch(45.16, 82.24, 326.51°)
OKLaboklab(55.73% 0.1885 -0.1262)
OKLCHoklch(55.73% 0.227 326.2)
XYZxyz(27.8752, 14.6554, 46.6987)
Luminance0.1465 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22BB8 #31B82B
analogous
#6C2BB8 #B22BB8 #B82B78
triadic
#B22BB8 #B8B22B #2BB8B2
tetradic
#B22BB8 #B86C2B #31B82B #2B78B8
square
#B22BB8 #B86C2B #31B82B #2B78B8
split-complementary
#B22BB8 #78B82B #2BB86C
monochromatic
#521455 #821F86 #B22BB8 #CF4BD5 #DC7DE1

Accessibility & contrast

On white

5.34
#B22BB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#B22BB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22BB8
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22BB8#FFFFFF#000000##FFFFFF
##B22BB81.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BC
Deuteranopia (green-blind)
#4D71B5
Tritanopia (blue-blind)
#B74471
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b22bb8;
/* rgb */ color: rgb(178, 43, 184);
/* oklch */ color: oklch(55.7% 0.227 326.2);
Tailwind
colors: {
  custom: {
    50: '#cd74ce',
    500: '#b22bb8',
    950: '#000000',
  },
}
SCSS
$custom: #b22bb8;
$custom-light: #cd74ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b22bb8",
  "rgb": {
    "r": 178,
    "g": 43,
    "b": 184
  },
  "hsl": {
    "h": 297.447,
    "s": 62.115,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55726,
    "c": 0.22684,
    "h": 326.2
  },
  "luminance": 0.14653
}

Semantic roles & 50–950 ramp

primary
#B22BB8
secondary
#79C976
accent
#E5434A
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B22BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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