#B22CB7#B22CB7

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

Color values

HEX#B22CB7
RGBrgb(178, 44, 183)
HSLhsl(298, 61%, 45%)
HSVhsv(298, 76%, 72%)
CMYKcmyk(2.7%, 76%, 0%, 28.2%)
CIE-LABlab(45.20, 68.12, -44.72)
CIE-LCHlch(45.20, 81.49, 326.71°)
OKLaboklab(55.74% 0.1877 -0.1243)
OKLCHoklch(55.74% 0.225 326.5)
XYZxyz(27.8075, 14.6872, 46.1608)
Luminance0.1469 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22CB7 #31B72C
analogous
#6D2CB7 #B22CB7 #B72C76
triadic
#B22CB7 #B7B22C #2CB7B2
tetradic
#B22CB7 #B76D2C #31B72C #2C76B7
square
#B22CB7 #B76D2C #31B72C #2C76B7
split-complementary
#B22CB7 #76B72C #2CB76D
monochromatic
#521454 #822086 #B22CB7 #CF4CD4 #DC7EE0

Accessibility & contrast

On white

5.33
#B22CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#B22CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22CB7
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22CB7#FFFFFF#000000##FFFFFF
##B22CB71.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BB
Deuteranopia (green-blind)
#4F71B4
Tritanopia (blue-blind)
#B74470
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b22cb7;
/* rgb */ color: rgb(178, 44, 183);
/* oklch */ color: oklch(55.7% 0.225 326.5);
Tailwind
colors: {
  custom: {
    50: '#cd74cd',
    500: '#b22cb7',
    950: '#000000',
  },
}
SCSS
$custom: #b22cb7;
$custom-light: #cd74cd;
$custom-dark: #000000;
JSON
{
  "hex": "#b22cb7",
  "rgb": {
    "r": 178,
    "g": 44,
    "b": 183
  },
  "hsl": {
    "h": 297.842,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55739,
    "c": 0.22514,
    "h": 326.5
  },
  "luminance": 0.14685
}

Semantic roles & 50–950 ramp

primary
#B22CB7
secondary
#79C876
accent
#E44349
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B22CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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