#BA2F9A#BA2F9A

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

Color values

HEX#BA2F9A
RGBrgb(186, 47, 154)
HSLhsl(314, 60%, 46%)
HSVhsv(314, 75%, 73%)
CMYKcmyk(0%, 74.7%, 17.2%, 27.1%)
CIE-LABlab(45.37, 64.56, -27.16)
CIE-LCHlch(45.37, 70.04, 337.19°)
OKLaboklab(55.63% 0.1919 -0.0735)
OKLCHoklch(55.63% 0.205 339)
XYZxyz(27.0996, 14.8079, 31.9966)
Luminance0.1480 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2F9A #2FBA4F
analogous
#942FBA #BA2F9A #BA2F54
triadic
#BA2F9A #9ABA2F #2F9ABA
tetradic
#BA2F9A #BA942F #2FBA4F #2F54BA
square
#BA2F9A #BA942F #2FBA4F #2F54BA
split-complementary
#BA2F9A #54BA2F #2FBA94
monochromatic
#581649 #892372 #BA2F9A #D353B6 #E084CB

Accessibility & contrast

On white

5.30
#BA2F9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#BA2F9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2F9A
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2F9A#FFFFFF#000000##FFFFFF
##BA2F9A1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375D9D
Deuteranopia (green-blind)
#657397
Tritanopia (blue-blind)
#C53561
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba2f9a;
/* rgb */ color: rgb(186, 47, 154);
/* oklch */ color: oklch(55.6% 0.205 339.0);
Tailwind
colors: {
  custom: {
    50: '#d376b8',
    500: '#ba2f9a',
    950: '#000000',
  },
}
SCSS
$custom: #ba2f9a;
$custom-light: #d376b8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2f9a",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 154
  },
  "hsl": {
    "h": 313.813,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55629,
    "c": 0.20549,
    "h": 339
  },
  "luminance": 0.14805
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA2F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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