#BA22A0#BA22A0

#BA22A0 is a mid, highly saturated pink. Relative luminance 0.141; OKLCH L 55.0% C 0.221 H 336.6°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#BA22A0
RGBrgb(186, 34, 160)
HSLhsl(310, 69%, 43%)
HSVhsv(310, 82%, 73%)
CMYKcmyk(0%, 81.7%, 14%, 27.1%)
CIE-LABlab(44.41, 68.97, -32.25)
CIE-LCHlch(44.41, 76.14, 334.94°)
OKLaboklab(55.03% 0.2032 -0.088)
OKLCHoklch(55.03% 0.221 336.6)
XYZxyz(27.1674, 14.1238, 34.5463)
Luminance0.1412 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA22A0 #22BA3C
analogous
#8822BA #BA22A0 #BA2254
triadic
#BA22A0 #A0BA22 #22A0BA
tetradic
#BA22A0 #BA8822 #22BA3C #2254BA
square
#BA22A0 #BA8822 #22BA3C #2254BA
split-complementary
#BA22A0 #54BA22 #22BA88
monochromatic
#530F47 #861973 #BA22A0 #DC3EC1 #E571D1

Accessibility & contrast

On white

5.49
#BA22A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#BA22A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA22A0
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA22A0#FFFFFF#000000##FFFFFF
##BA22A01.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265BA3
Deuteranopia (green-blind)
#5F719D
Tritanopia (blue-blind)
#C42F61
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba22a0;
/* rgb */ color: rgb(186, 34, 160);
/* oklch */ color: oklch(55.0% 0.221 336.6);
Tailwind
colors: {
  custom: {
    50: '#d371bc',
    500: '#ba22a0',
    950: '#000000',
  },
}
SCSS
$custom: #ba22a0;
$custom-light: #d371bc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba22a0",
  "rgb": {
    "r": 186,
    "g": 34,
    "b": 160
  },
  "hsl": {
    "h": 310.263,
    "s": 69.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.55032,
    "c": 0.22145,
    "h": 336.6
  },
  "luminance": 0.14121
}

Semantic roles & 50–950 ramp

primary
#BA22A0
secondary
#6CCC7C
accent
#EC5A3C
background
#FDF7FB
surface
#FBEDF6
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA22A0

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

Preview Lab → · Contrast checker → · Palette generator →

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