#B22BC7#B22BC7

#B22BC7 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.7% C 0.238 H 321.8°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#B22BC7
RGBrgb(178, 43, 199)
HSLhsl(292, 64%, 47%)
HSVhsv(292, 78%, 78%)
CMYKcmyk(10.6%, 78.4%, 0%, 22%)
CIE-LABlab(46.07, 71.12, -52.68)
CIE-LCHlch(46.07, 88.51, 323.47°)
OKLaboklab(56.66% 0.1873 -0.1476)
OKLCHoklch(56.66% 0.238 321.8)
XYZxyz(29.5317, 15.3180, 55.4229)
Luminance0.1532 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22BC7 #40C72B
analogous
#642BC7 #B22BC7 #C72B8E
triadic
#B22BC7 #C7B22B #2BC7B2
tetradic
#B22BC7 #C7642B #40C72B #2B8EC7
square
#B22BC7 #C7642B #40C72B #2B8EC7
split-complementary
#B22BC7 #8EC72B #2BC764
monochromatic
#581562 #852095 #B22BC7 #C855DA #D887E5

Accessibility & contrast

On white

5.17
#B22BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#B22BC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22BC7
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22BC7#FFFFFF#000000##FFFFFF
##B22BC71.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CB
Deuteranopia (green-blind)
#4272C4
Tritanopia (blue-blind)
#B44C79
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b22bc7;
/* rgb */ color: rgb(178, 43, 199);
/* oklch */ color: oklch(56.7% 0.238 321.8);
Tailwind
colors: {
  custom: {
    50: '#cd75d9',
    500: '#b22bc7',
    950: '#000000',
  },
}
SCSS
$custom: #b22bc7;
$custom-light: #cd75d9;
$custom-dark: #000000;
JSON
{
  "hex": "#b22bc7",
  "rgb": {
    "r": 178,
    "g": 43,
    "b": 199
  },
  "hsl": {
    "h": 291.923,
    "s": 64.463,
    "l": 47.451
  },
  "oklch": {
    "l": 0.56661,
    "c": 0.23844,
    "h": 321.8
  },
  "luminance": 0.15316
}

Semantic roles & 50–950 ramp

primary
#B22BC7
secondary
#8ACF7F
accent
#E74057
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140915
muted
#837B83

Preview Lab

Preview with #B22BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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