#BA2FA9#BA2FA9

#BA2FA9 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.4% C 0.216 H 333.6°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#BA2FA9
RGBrgb(186, 47, 169)
HSLhsl(307, 60%, 46%)
HSVhsv(307, 75%, 73%)
CMYKcmyk(0%, 74.7%, 9.1%, 27.1%)
CIE-LABlab(46.10, 66.73, -34.97)
CIE-LCHlch(46.10, 75.33, 332.35°)
OKLaboklab(56.39% 0.1933 -0.0959)
OKLCHoklch(56.39% 0.216 333.6)
XYZxyz(28.4279, 15.3392, 38.9920)
Luminance0.1534 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2FA9 #2FBA40
analogous
#852FBA #BA2FA9 #BA2F63
triadic
#BA2FA9 #A9BA2F #2FA9BA
tetradic
#BA2FA9 #BA852F #2FBA40 #2F63BA
square
#BA2FA9 #BA852F #2FBA40 #2F63BA
split-complementary
#BA2FA9 #63BA2F #2FBA85
monochromatic
#581650 #89237D #BA2FA9 #D353C4 #E084D5

Accessibility & contrast

On white

5.16
#BA2FA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#BA2FA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2FA9
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2FA9#FFFFFF#000000##FFFFFF
##BA2FA91.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A60AC
Deuteranopia (green-blind)
#5F74A6
Tritanopia (blue-blind)
#C33D69
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba2fa9;
/* rgb */ color: rgb(186, 47, 169);
/* oklch */ color: oklch(56.4% 0.216 333.6);
Tailwind
colors: {
  custom: {
    50: '#d376c3',
    500: '#ba2fa9',
    950: '#000000',
  },
}
SCSS
$custom: #ba2fa9;
$custom-light: #d376c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2fa9",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 169
  },
  "hsl": {
    "h": 307.338,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56387,
    "c": 0.21573,
    "h": 333.6
  },
  "luminance": 0.15337
}

Semantic roles & 50–950 ramp

primary
#BA2FA9
secondary
#7CC985
accent
#E35845
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA2FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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