#BA2E8F#BA2E8F

#BA2E8F is a mid, vivid pink. Relative luminance 0.144; OKLCH L 55.0% C 0.200 H 343.3°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#BA2E8F
RGBrgb(186, 46, 143)
HSLhsl(318, 60%, 45%)
HSVhsv(318, 75%, 73%)
CMYKcmyk(0%, 75.3%, 23.1%, 27.1%)
CIE-LABlab(44.77, 63.40, -21.46)
CIE-LCHlch(44.77, 66.93, 341.30°)
OKLaboklab(55.04% 0.1912 -0.0574)
OKLCHoklch(55.04% 0.2 343.3)
XYZxyz(26.1856, 14.3790, 27.3777)
Luminance0.1438 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2E8F #2EBA59
analogous
#9F2EBA #BA2E8F #BA2E49
triadic
#BA2E8F #8FBA2E #2E8FBA
tetradic
#BA2E8F #BA9F2E #2EBA59 #2E49BA
square
#BA2E8F #BA9F2E #2EBA59 #2E49BA
split-complementary
#BA2E8F #49BA2E #2EBA9F
monochromatic
#581644 #892269 #BA2E8F #D451AC #E082C3

Accessibility & contrast

On white

5.42
#BA2E8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#BA2E8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2E8F
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2E8F#FFFFFF#000000##FFFFFF
##BA2E8F1.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5B92
Deuteranopia (green-blind)
#69728C
Tritanopia (blue-blind)
#C62E5B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #ba2e8f;
/* rgb */ color: rgb(186, 46, 143);
/* oklch */ color: oklch(55.0% 0.200 343.3);
Tailwind
colors: {
  custom: {
    50: '#d375b0',
    500: '#ba2e8f',
    950: '#000000',
  },
}
SCSS
$custom: #ba2e8f;
$custom-light: #d375b0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2e8f",
  "rgb": {
    "r": 186,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 318.429,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.55037,
    "c": 0.19961,
    "h": 343.3
  },
  "luminance": 0.14376
}

Semantic roles & 50–950 ramp

primary
#BA2E8F
secondary
#7BC993
accent
#E37544
background
#FDF7FA
surface
#FBEEF4
border
#D4C9CE
text
#150910
muted
#837B7F

Preview Lab

Preview with #BA2E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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