#BA2D9F#BA2D9F

#BA2D9F is a mid, highly saturated pink. Relative luminance 0.148; OKLCH L 55.7% C 0.211 H 337.1°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#BA2D9F
RGBrgb(186, 45, 159)
HSLhsl(311, 61%, 45%)
HSVhsv(311, 76%, 73%)
CMYKcmyk(0%, 75.8%, 14.5%, 27.1%)
CIE-LABlab(45.39, 65.88, -30.12)
CIE-LCHlch(45.39, 72.44, 335.43°)
OKLaboklab(55.72% 0.1943 -0.082)
OKLCHoklch(55.72% 0.211 337.1)
XYZxyz(27.4466, 14.8217, 34.2095)
Luminance0.1482 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2D9F #2DBA48
analogous
#8E2DBA #BA2D9F #BA2D59
triadic
#BA2D9F #9FBA2D #2D9FBA
tetradic
#BA2D9F #BA8E2D #2DBA48 #2D59BA
square
#BA2D9F #BA8E2D #2DBA48 #2D59BA
split-complementary
#BA2D9F #59BA2D #2DBA8E
monochromatic
#57154B #892175 #BA2D9F #D550BB #E081CE

Accessibility & contrast

On white

5.30
#BA2D9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#BA2D9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2D9F
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2D9F#FFFFFF#000000##FFFFFF
##BA2D9F1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325EA2
Deuteranopia (green-blind)
#63739C
Tritanopia (blue-blind)
#C43663
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba2d9f;
/* rgb */ color: rgb(186, 45, 159);
/* oklch */ color: oklch(55.7% 0.211 337.1);
Tailwind
colors: {
  custom: {
    50: '#d375bb',
    500: '#ba2d9f',
    950: '#000000',
  },
}
SCSS
$custom: #ba2d9f;
$custom-light: #d375bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2d9f",
  "rgb": {
    "r": 186,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 311.489,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.55719,
    "c": 0.21086,
    "h": 337.1
  },
  "luminance": 0.14819
}

Semantic roles & 50–950 ramp

primary
#BA2D9F
secondary
#79C989
accent
#E46244
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA2D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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