#BA2FA2#BA2FA2

#BA2FA2 is a mid, highly saturated pink. Relative luminance 0.151; OKLCH L 56.0% C 0.211 H 336.1°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#BA2FA2
RGBrgb(186, 47, 162)
HSLhsl(310, 60%, 46%)
HSVhsv(310, 75%, 73%)
CMYKcmyk(0%, 74.7%, 12.9%, 27.1%)
CIE-LABlab(45.75, 65.70, -31.35)
CIE-LCHlch(45.75, 72.79, 334.49°)
OKLaboklab(56.03% 0.1927 -0.0855)
OKLCHoklch(56.03% 0.211 336.1)
XYZxyz(27.7882, 15.0833, 35.6233)
Luminance0.1508 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2FA2 #2FBA47
analogous
#8C2FBA #BA2FA2 #BA2F5C
triadic
#BA2FA2 #A2BA2F #2FA2BA
tetradic
#BA2FA2 #BA8C2F #2FBA47 #2F5CBA
square
#BA2FA2 #BA8C2F #2FBA47 #2F5CBA
split-complementary
#BA2FA2 #5CBA2F #2FBA8C
monochromatic
#58164D #892377 #BA2FA2 #D353BD #E084D0

Accessibility & contrast

On white

5.23
#BA2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#BA2FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2FA2
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2FA2#FFFFFF#000000##FFFFFF
##BA2FA21.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315FA5
Deuteranopia (green-blind)
#62749F
Tritanopia (blue-blind)
#C43966
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba2fa2;
/* rgb */ color: rgb(186, 47, 162);
/* oklch */ color: oklch(56.0% 0.211 336.1);
Tailwind
colors: {
  custom: {
    50: '#d376be',
    500: '#ba2fa2',
    950: '#000000',
  },
}
SCSS
$custom: #ba2fa2;
$custom-light: #d376be;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2fa2",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 310.36,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56025,
    "c": 0.21085,
    "h": 336.1
  },
  "luminance": 0.15081
}

Semantic roles & 50–950 ramp

primary
#BA2FA2
secondary
#7CC989
accent
#E36045
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA2FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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