#BA2E98#BA2E98

#BA2E98 is a mid, highly saturated pink. Relative luminance 0.147; OKLCH L 55.5% C 0.205 H 339.8°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#BA2E98
RGBrgb(186, 46, 152)
HSLhsl(315, 60%, 45%)
HSVhsv(315, 75%, 73%)
CMYKcmyk(0%, 75.3%, 18.3%, 27.1%)
CIE-LABlab(45.17, 64.60, -26.27)
CIE-LCHlch(45.17, 69.73, 337.87°)
OKLaboklab(55.45% 0.1926 -0.071)
OKLCHoklch(55.45% 0.205 339.8)
XYZxyz(26.8949, 14.6628, 31.1135)
Luminance0.1466 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2E98 #2EBA50
analogous
#962EBA #BA2E98 #BA2E52
triadic
#BA2E98 #98BA2E #2E98BA
tetradic
#BA2E98 #BA962E #2EBA50 #2E52BA
square
#BA2E98 #BA962E #2EBA50 #2E52BA
split-complementary
#BA2E98 #52BA2E #2EBA96
monochromatic
#581648 #892270 #BA2E98 #D451B4 #E082C9

Accessibility & contrast

On white

5.34
#BA2E98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#BA2E98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2E98
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2E98#FFFFFF#000000##FFFFFF
##BA2E981.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385D9B
Deuteranopia (green-blind)
#667395
Tritanopia (blue-blind)
#C53360
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba2e98;
/* rgb */ color: rgb(186, 46, 152);
/* oklch */ color: oklch(55.5% 0.205 339.8);
Tailwind
colors: {
  custom: {
    50: '#d375b6',
    500: '#ba2e98',
    950: '#000000',
  },
}
SCSS
$custom: #ba2e98;
$custom-light: #d375b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2e98",
  "rgb": {
    "r": 186,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 314.571,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.55454,
    "c": 0.20523,
    "h": 339.8
  },
  "luminance": 0.1466
}

Semantic roles & 50–950 ramp

primary
#BA2E98
secondary
#7BC98E
accent
#E36B44
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA2E98

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

Preview Lab → · Contrast checker → · Palette generator →

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