#BA2F99#BA2F99

#BA2F99 is a mid, highly saturated pink. Relative luminance 0.148; OKLCH L 55.6% C 0.205 H 339.4°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#BA2F99
RGBrgb(186, 47, 153)
HSLhsl(314, 60%, 46%)
HSVhsv(314, 75%, 73%)
CMYKcmyk(0%, 74.7%, 17.7%, 27.1%)
CIE-LABlab(45.32, 64.42, -26.63)
CIE-LCHlch(45.32, 69.71, 337.54°)
OKLaboklab(55.58% 0.1918 -0.072)
OKLCHoklch(55.58% 0.205 339.4)
XYZxyz(27.0167, 14.7747, 31.5598)
Luminance0.1477 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2F99 #2FBA50
analogous
#962FBA #BA2F99 #BA2F53
triadic
#BA2F99 #99BA2F #2F99BA
tetradic
#BA2F99 #BA962F #2FBA50 #2F53BA
square
#BA2F99 #BA962F #2FBA50 #2F53BA
split-complementary
#BA2F99 #53BA2F #2FBA96
monochromatic
#581649 #892371 #BA2F99 #D353B5 #E084CA

Accessibility & contrast

On white

5.31
#BA2F99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA2F99
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2F99#FFFFFF#000000##FFFFFF
##BA2F991.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385D9C
Deuteranopia (green-blind)
#667396
Tritanopia (blue-blind)
#C53561
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba2f99;
/* rgb */ color: rgb(186, 47, 153);
/* oklch */ color: oklch(55.6% 0.205 339.4);
Tailwind
colors: {
  custom: {
    50: '#d376b7',
    500: '#ba2f99',
    950: '#000000',
  },
}
SCSS
$custom: #ba2f99;
$custom-light: #d376b7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2f99",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 153
  },
  "hsl": {
    "h": 314.245,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55581,
    "c": 0.20483,
    "h": 339.4
  },
  "luminance": 0.14772
}

Semantic roles & 50–950 ramp

primary
#BA2F99
secondary
#7CC98E
accent
#E36A45
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA2F99

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

Preview Lab → · Contrast checker → · Palette generator →

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