#BA2E9F#BA2E9F

#BA2E9F is a mid, highly saturated pink. Relative luminance 0.149; OKLCH L 55.8% C 0.210 H 337.1°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#BA2E9F
RGBrgb(186, 46, 159)
HSLhsl(312, 60%, 45%)
HSVhsv(312, 75%, 73%)
CMYKcmyk(0%, 75.3%, 14.5%, 27.1%)
CIE-LABlab(45.50, 65.57, -29.95)
CIE-LCHlch(45.50, 72.09, 335.45°)
OKLaboklab(55.8% 0.1934 -0.0815)
OKLCHoklch(55.8% 0.21 337.1)
XYZxyz(27.4852, 14.8989, 34.2224)
Luminance0.1490 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2E9F #2EBA49
analogous
#8F2EBA #BA2E9F #BA2E59
triadic
#BA2E9F #9FBA2E #2E9FBA
tetradic
#BA2E9F #BA8F2E #2EBA49 #2E59BA
square
#BA2E9F #BA8F2E #2EBA49 #2E59BA
split-complementary
#BA2E9F #59BA2E #2EBA8F
monochromatic
#58164B #892275 #BA2E9F #D451BB #E082CE

Accessibility & contrast

On white

5.28
#BA2E9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#BA2E9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2E9F
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2E9F#FFFFFF#000000##FFFFFF
##BA2E9F1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335EA2
Deuteranopia (green-blind)
#63739C
Tritanopia (blue-blind)
#C43764
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba2e9f;
/* rgb */ color: rgb(186, 46, 159);
/* oklch */ color: oklch(55.8% 0.210 337.1);
Tailwind
colors: {
  custom: {
    50: '#d375bb',
    500: '#ba2e9f',
    950: '#000000',
  },
}
SCSS
$custom: #ba2e9f;
$custom-light: #d375bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2e9f",
  "rgb": {
    "r": 186,
    "g": 46,
    "b": 159
  },
  "hsl": {
    "h": 311.571,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.55796,
    "c": 0.20984,
    "h": 337.1
  },
  "luminance": 0.14896
}

Semantic roles & 50–950 ramp

primary
#BA2E9F
secondary
#7BC98A
accent
#E36344
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA2E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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