#B222BC#B222BC

#B222BC is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 55.4% C 0.237 H 325.1°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#B222BC
RGBrgb(178, 34, 188)
HSLhsl(296, 69%, 44%)
HSVhsv(296, 82%, 74%)
CMYKcmyk(5.3%, 81.9%, 0%, 26.3%)
CIE-LABlab(44.58, 71.62, -48.65)
CIE-LCHlch(44.58, 86.58, 325.81°)
OKLaboklab(55.39% 0.1948 -0.1357)
OKLCHoklch(55.39% 0.237 325.1)
XYZxyz(28.0086, 14.2418, 48.8409)
Luminance0.1424 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B222BC #2CBC22
analogous
#6522BC #B222BC #BC2279
triadic
#B222BC #BCB222 #22BCB2
tetradic
#B222BC #BC6522 #2CBC22 #2279BC
square
#B222BC #BC6522 #2CBC22 #2279BC
split-complementary
#B222BC #79BC22 #22BC65
monochromatic
#500F54 #811988 #B222BC #D23FDC #DE73E6

Accessibility & contrast

On white

5.46
#B222BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#B222BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B222BC
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B222BC#FFFFFF#000000##FFFFFF
##B222BC1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC0
Deuteranopia (green-blind)
#476FB9
Tritanopia (blue-blind)
#B64271
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b222bc;
/* rgb */ color: rgb(178, 34, 188);
/* oklch */ color: oklch(55.4% 0.237 325.1);
Tailwind
colors: {
  custom: {
    50: '#cd71d1',
    500: '#b222bc',
    950: '#000000',
  },
}
SCSS
$custom: #b222bc;
$custom-light: #cd71d1;
$custom-dark: #000000;
JSON
{
  "hex": "#b222bc",
  "rgb": {
    "r": 178,
    "g": 34,
    "b": 188
  },
  "hsl": {
    "h": 296.104,
    "s": 69.369,
    "l": 43.529
  },
  "oklch": {
    "l": 0.55391,
    "c": 0.23742,
    "h": 325.1
  },
  "luminance": 0.1424
}

Semantic roles & 50–950 ramp

primary
#B222BC
secondary
#73CD6D
accent
#EC3C47
background
#FDF7FC
surface
#FAEDF9
border
#D3C8D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B222BC

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

Preview Lab → · Contrast checker → · Palette generator →

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