#BA2E9D#BA2E9D

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

Color values

HEX#BA2E9D
RGBrgb(186, 46, 157)
HSLhsl(312, 60%, 45%)
HSVhsv(312, 75%, 73%)
CMYKcmyk(0%, 75.3%, 15.6%, 27.1%)
CIE-LABlab(45.40, 65.29, -28.91)
CIE-LCHlch(45.40, 71.41, 336.12°)
OKLaboklab(55.7% 0.1932 -0.0785)
OKLCHoklch(55.7% 0.209 337.9)
XYZxyz(27.3131, 14.8300, 33.3158)
Luminance0.1483 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2E9D #2EBA4B
analogous
#912EBA #BA2E9D #BA2E57
triadic
#BA2E9D #9DBA2E #2E9DBA
tetradic
#BA2E9D #BA912E #2EBA4B #2E57BA
square
#BA2E9D #BA912E #2EBA4B #2E57BA
split-complementary
#BA2E9D #57BA2E #2EBA91
monochromatic
#58164A #892274 #BA2E9D #D451B9 #E082CD

Accessibility & contrast

On white

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

On black

3.97
#BA2E9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##BA2E9D#FFFFFF#000000##FFFFFF
##BA2E9D1.005.303.975.30
#FFFFFF5.301.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345EA0
Deuteranopia (green-blind)
#64739A
Tritanopia (blue-blind)
#C43663
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba2e9d;
/* rgb */ color: rgb(186, 46, 157);
/* oklch */ color: oklch(55.7% 0.209 337.9);
Tailwind
colors: {
  custom: {
    50: '#d375ba',
    500: '#ba2e9d',
    950: '#000000',
  },
}
SCSS
$custom: #ba2e9d;
$custom-light: #d375ba;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2e9d",
  "rgb": {
    "r": 186,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 312.429,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.55697,
    "c": 0.20851,
    "h": 337.9
  },
  "luminance": 0.14827
}

Semantic roles & 50–950 ramp

primary
#BA2E9D
secondary
#7BC98B
accent
#E36544
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA2E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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