#BA22BB#BA22BB

#BA22BB is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.5% C 0.240 H 327.9°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#BA22BB
RGBrgb(186, 34, 187)
HSLhsl(300, 69%, 43%)
HSVhsv(300, 82%, 73%)
CMYKcmyk(0.5%, 81.8%, 0%, 26.7%)
CIE-LABlab(45.87, 72.96, -45.92)
CIE-LCHlch(45.87, 86.21, 327.81°)
OKLaboklab(56.54% 0.2032 -0.1276)
OKLCHoklch(56.54% 0.24 327.9)
XYZxyz(29.7910, 15.1733, 48.3637)
Luminance0.1517 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA22BB #23BB22
analogous
#6D22BB #BA22BB #BB226F
triadic
#BA22BB #BBBA22 #22BBBA
tetradic
#BA22BB #BB6D22 #23BB22 #226FBB
square
#BA22BB #BB6D22 #23BB22 #226FBB
split-complementary
#BA22BB #6FBB22 #22BB6D
monochromatic
#530F53 #861987 #BA22BB #DB3EDC #E572E5

Accessibility & contrast

On white

5.21
#BA22BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#BA22BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA22BB
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA22BB#FFFFFF#000000##FFFFFF
##BA22BB1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BF
Deuteranopia (green-blind)
#5073B7
Tritanopia (blue-blind)
#C03F71
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba22bb;
/* rgb */ color: rgb(186, 34, 187);
/* oklch */ color: oklch(56.5% 0.240 327.9);
Tailwind
colors: {
  custom: {
    50: '#d372d0',
    500: '#ba22bb',
    950: '#000000',
  },
}
SCSS
$custom: #ba22bb;
$custom-light: #d372d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba22bb",
  "rgb": {
    "r": 186,
    "g": 34,
    "b": 187
  },
  "hsl": {
    "h": 299.608,
    "s": 69.231,
    "l": 43.333
  },
  "oklch": {
    "l": 0.56543,
    "c": 0.23996,
    "h": 327.9
  },
  "luminance": 0.15171
}

Semantic roles & 50–950 ramp

primary
#BA22BB
secondary
#6DCC6D
accent
#EC3C3D
background
#FDF7FC
surface
#FBEDF9
border
#D4C8D2
text
#150914
muted
#837B82

Preview Lab

Preview with #BA22BB

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

Preview Lab → · Contrast checker → · Palette generator →

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