#BA22B6#BA22B6

#BA22B6 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.2% C 0.236 H 329.4°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#BA22B6
RGBrgb(186, 34, 182)
HSLhsl(302, 69%, 43%)
HSVhsv(302, 82%, 73%)
CMYKcmyk(0%, 81.7%, 2.2%, 27.1%)
CIE-LABlab(45.58, 72.18, -43.45)
CIE-LCHlch(45.58, 84.25, 328.96°)
OKLaboklab(56.25% 0.2035 -0.1204)
OKLCHoklch(56.25% 0.236 329.4)
XYZxyz(29.2650, 14.9629, 45.5937)
Luminance0.1496 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA22B6 #22BA26
analogous
#7222BA #BA22B6 #BA226A
triadic
#BA22B6 #B6BA22 #22B6BA
tetradic
#BA22B6 #BA7222 #22BA26 #226ABA
square
#BA22B6 #BA7222 #22BA26 #226ABA
split-complementary
#BA22B6 #6ABA22 #22BA72
monochromatic
#530F51 #861983 #BA22B6 #DC3ED7 #E571E2

Accessibility & contrast

On white

5.26
#BA22B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#BA22B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA22B6
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA22B6#FFFFFF#000000##FFFFFF
##BA22B61.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBA
Deuteranopia (green-blind)
#5373B3
Tritanopia (blue-blind)
#C13C6E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba22b6;
/* rgb */ color: rgb(186, 34, 182);
/* oklch */ color: oklch(56.2% 0.236 329.4);
Tailwind
colors: {
  custom: {
    50: '#d372cc',
    500: '#ba22b6',
    950: '#000000',
  },
}
SCSS
$custom: #ba22b6;
$custom-light: #d372cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba22b6",
  "rgb": {
    "r": 186,
    "g": 34,
    "b": 182
  },
  "hsl": {
    "h": 301.579,
    "s": 69.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.56247,
    "c": 0.23642,
    "h": 329.4
  },
  "luminance": 0.14961
}

Semantic roles & 50–950 ramp

primary
#BA22B6
secondary
#6CCC6E
accent
#EC413C
background
#FDF7FC
surface
#FBEDF9
border
#D4C8D2
text
#150913
muted
#837B82

Preview Lab

Preview with #BA22B6

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

Preview Lab → · Contrast checker → · Palette generator →

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