#BA229A#BA229A

#BA229A is a mid, highly saturated pink. Relative luminance 0.139; OKLCH L 54.7% C 0.218 H 338.7°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#BA229A
RGBrgb(186, 34, 154)
HSLhsl(313, 69%, 43%)
HSVhsv(313, 82%, 73%)
CMYKcmyk(0%, 81.7%, 17.2%, 27.1%)
CIE-LABlab(44.12, 68.16, -29.11)
CIE-LCHlch(44.12, 74.11, 336.87°)
OKLaboklab(54.73% 0.2027 -0.079)
OKLCHoklch(54.73% 0.218 338.7)
XYZxyz(26.6552, 13.9189, 31.8484)
Luminance0.1392 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA229A #22BA42
analogous
#8E22BA #BA229A #BA224E
triadic
#BA229A #9ABA22 #229ABA
tetradic
#BA229A #BA8E22 #22BA42 #224EBA
square
#BA229A #BA8E22 #22BA42 #224EBA
split-complementary
#BA229A #4EBA22 #22BA8E
monochromatic
#530F44 #86196F #BA229A #DC3EBA #E571CD

Accessibility & contrast

On white

5.55
#BA229A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#BA229A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA229A
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA229A#FFFFFF#000000##FFFFFF
##BA229A1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C599D
Deuteranopia (green-blind)
#617197
Tritanopia (blue-blind)
#C52B5E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ba229a;
/* rgb */ color: rgb(186, 34, 154);
/* oklch */ color: oklch(54.7% 0.218 338.7);
Tailwind
colors: {
  custom: {
    50: '#d371b8',
    500: '#ba229a',
    950: '#000000',
  },
}
SCSS
$custom: #ba229a;
$custom-light: #d371b8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba229a",
  "rgb": {
    "r": 186,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 312.632,
    "s": 69.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.54726,
    "c": 0.21759,
    "h": 338.7
  },
  "luminance": 0.13916
}

Semantic roles & 50–950 ramp

primary
#BA229A
secondary
#6CCC80
accent
#EC613C
background
#FDF7FB
surface
#FBEDF6
border
#D4C8D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA229A

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

Preview Lab → · Contrast checker → · Palette generator →

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