#BA2F98#BA2F98

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

Color values

HEX#BA2F98
RGBrgb(186, 47, 152)
HSLhsl(315, 60%, 46%)
HSVhsv(315, 75%, 73%)
CMYKcmyk(0%, 74.7%, 18.3%, 27.1%)
CIE-LABlab(45.28, 64.29, -26.10)
CIE-LCHlch(45.28, 69.38, 337.90°)
OKLaboklab(55.53% 0.1916 -0.0705)
OKLCHoklch(55.53% 0.204 339.8)
XYZxyz(26.9345, 14.7418, 31.1266)
Luminance0.1474 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2F98 #2FBA51
analogous
#962FBA #BA2F98 #BA2F52
triadic
#BA2F98 #98BA2F #2F98BA
tetradic
#BA2F98 #BA962F #2FBA51 #2F52BA
square
#BA2F98 #BA962F #2FBA51 #2F52BA
split-complementary
#BA2F98 #52BA2F #2FBA96
monochromatic
#581648 #892370 #BA2F98 #D353B4 #E084C9

Accessibility & contrast

On white

5.32
#BA2F98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#BA2F98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2F98
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2F98#FFFFFF#000000##FFFFFF
##BA2F981.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba2f98;
/* rgb */ color: rgb(186, 47, 152);
/* oklch */ color: oklch(55.5% 0.204 339.8);
Tailwind
colors: {
  custom: {
    50: '#d376b6',
    500: '#ba2f98',
    950: '#000000',
  },
}
SCSS
$custom: #ba2f98;
$custom-light: #d376b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2f98",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 314.676,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55533,
    "c": 0.20418,
    "h": 339.8
  },
  "luminance": 0.14739
}

Semantic roles & 50–950 ramp

primary
#BA2F98
secondary
#7CC98F
accent
#E36C45
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA2F98

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

Preview Lab → · Contrast checker → · Palette generator →

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