#BA2D9C#BA2D9C

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

Color values

HEX#BA2D9C
RGBrgb(186, 45, 156)
HSLhsl(313, 61%, 45%)
HSVhsv(313, 76%, 73%)
CMYKcmyk(0%, 75.8%, 16.1%, 27.1%)
CIE-LABlab(45.25, 65.46, -28.55)
CIE-LCHlch(45.25, 71.41, 336.44°)
OKLaboklab(55.57% 0.194 -0.0775)
OKLCHoklch(55.57% 0.209 338.2)
XYZxyz(27.1895, 14.7188, 32.8551)
Luminance0.1472 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2D9C #2DBA4B
analogous
#912DBA #BA2D9C #BA2D55
triadic
#BA2D9C #9CBA2D #2D9CBA
tetradic
#BA2D9C #BA912D #2DBA4B #2D55BA
square
#BA2D9C #BA912D #2DBA4B #2D55BA
split-complementary
#BA2D9C #55BA2D #2DBA91
monochromatic
#571549 #892173 #BA2D9C #D550B8 #E081CC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA2D9C#FFFFFF#000000##FFFFFF
##BA2D9C1.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)
#345D9F
Deuteranopia (green-blind)
#647399
Tritanopia (blue-blind)
#C43562
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba2d9c;
/* rgb */ color: rgb(186, 45, 156);
/* oklch */ color: oklch(55.6% 0.209 338.2);
Tailwind
colors: {
  custom: {
    50: '#d375b9',
    500: '#ba2d9c',
    950: '#000000',
  },
}
SCSS
$custom: #ba2d9c;
$custom-light: #d375b9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2d9c",
  "rgb": {
    "r": 186,
    "g": 45,
    "b": 156
  },
  "hsl": {
    "h": 312.766,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.5557,
    "c": 0.20887,
    "h": 338.2
  },
  "luminance": 0.14716
}

Semantic roles & 50–950 ramp

primary
#BA2D9C
secondary
#79C98A
accent
#E46644
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA2D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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