#BA2D9B#BA2D9B

#BA2D9B is a mid, highly saturated pink. Relative luminance 0.147; OKLCH L 55.5% C 0.208 H 338.6°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#BA2D9B
RGBrgb(186, 45, 155)
HSLhsl(313, 61%, 45%)
HSVhsv(313, 76%, 73%)
CMYKcmyk(0%, 75.8%, 16.7%, 27.1%)
CIE-LABlab(45.20, 65.32, -28.02)
CIE-LCHlch(45.20, 71.07, 336.78°)
OKLaboklab(55.52% 0.1939 -0.076)
OKLCHoklch(55.52% 0.208 338.6)
XYZxyz(27.1051, 14.6851, 32.4110)
Luminance0.1468 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2D9B #2DBA4C
analogous
#922DBA #BA2D9B #BA2D55
triadic
#BA2D9B #9BBA2D #2D9BBA
tetradic
#BA2D9B #BA922D #2DBA4C #2D55BA
square
#BA2D9B #BA922D #2DBA4C #2D55BA
split-complementary
#BA2D9B #55BA2D #2DBA92
monochromatic
#571549 #892172 #BA2D9B #D550B7 #E081CB

Accessibility & contrast

On white

5.33
#BA2D9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#BA2D9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2D9B
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2D9B#FFFFFF#000000##FFFFFF
##BA2D9B1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355D9E
Deuteranopia (green-blind)
#647398
Tritanopia (blue-blind)
#C53461
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba2d9b;
/* rgb */ color: rgb(186, 45, 155);
/* oklch */ color: oklch(55.5% 0.208 338.6);
Tailwind
colors: {
  custom: {
    50: '#d375b9',
    500: '#ba2d9b',
    950: '#000000',
  },
}
SCSS
$custom: #ba2d9b;
$custom-light: #d375b9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2d9b",
  "rgb": {
    "r": 186,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 313.191,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.55521,
    "c": 0.20822,
    "h": 338.6
  },
  "luminance": 0.14682
}

Semantic roles & 50–950 ramp

primary
#BA2D9B
secondary
#79C98B
accent
#E46744
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA2D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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