#B22BAF#B22BAF

#B22BAF is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.2% C 0.220 H 329.0°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#B22BAF
RGBrgb(178, 43, 175)
HSLhsl(301, 61%, 43%)
HSVhsv(301, 76%, 70%)
CMYKcmyk(0%, 75.8%, 1.7%, 30.2%)
CIE-LABlab(44.65, 67.12, -40.90)
CIE-LCHlch(44.65, 78.60, 328.65°)
OKLaboklab(55.2% 0.1887 -0.1132)
OKLCHoklch(55.2% 0.22 329)
XYZxyz(26.9616, 14.2899, 41.8873)
Luminance0.1429 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22BAF #2BB22E
analogous
#712BB2 #B22BAF #B22B6B
triadic
#B22BAF #AFB22B #2BAFB2
tetradic
#B22BAF #B2712B #2BB22E #2B6BB2
square
#B22BAF #B2712B #2BB22E #2B6BB2
split-complementary
#B22BAF #6BB22B #2BB271
monochromatic
#4F134E #811F7F #B22BAF #D348D0 #DF79DC

Accessibility & contrast

On white

5.44
#B22BAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#B22BAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22BAF
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22BAF#FFFFFF#000000##FFFFFF
##B22BAF1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#115EB3
Deuteranopia (green-blind)
#5370AC
Tritanopia (blue-blind)
#B8406C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b22baf;
/* rgb */ color: rgb(178, 43, 175);
/* oklch */ color: oklch(55.2% 0.220 329.0);
Tailwind
colors: {
  custom: {
    50: '#cd74c7',
    500: '#b22baf',
    950: '#000000',
  },
}
SCSS
$custom: #b22baf;
$custom-light: #cd74c7;
$custom-dark: #000000;
JSON
{
  "hex": "#b22baf",
  "rgb": {
    "r": 178,
    "g": 43,
    "b": 175
  },
  "hsl": {
    "h": 301.333,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.55196,
    "c": 0.22007,
    "h": 329
  },
  "luminance": 0.14288
}

Semantic roles & 50–950 ramp

primary
#B22BAF
secondary
#72C774
accent
#E44744
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B22BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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