#BA2FA8#BA2FA8

#BA2FA8 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.3% C 0.215 H 334.0°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#BA2FA8
RGBrgb(186, 47, 168)
HSLhsl(308, 60%, 46%)
HSVhsv(308, 75%, 73%)
CMYKcmyk(0%, 74.7%, 9.7%, 27.1%)
CIE-LABlab(46.04, 66.58, -34.45)
CIE-LCHlch(46.04, 74.96, 332.64°)
OKLaboklab(56.34% 0.1932 -0.0944)
OKLCHoklch(56.34% 0.215 334)
XYZxyz(28.3344, 15.3018, 38.4994)
Luminance0.1530 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2FA8 #2FBA41
analogous
#862FBA #BA2FA8 #BA2F62
triadic
#BA2FA8 #A8BA2F #2FA8BA
tetradic
#BA2FA8 #BA862F #2FBA41 #2F62BA
square
#BA2FA8 #BA862F #2FBA41 #2F62BA
split-complementary
#BA2FA8 #62BA2F #2FBA86
monochromatic
#581650 #89237C #BA2FA8 #D353C3 #E084D4

Accessibility & contrast

On white

5.17
#BA2FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#BA2FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2FA8
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2FA8#FFFFFF#000000##FFFFFF
##BA2FA81.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B60AB
Deuteranopia (green-blind)
#5F74A5
Tritanopia (blue-blind)
#C33C69
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba2fa8;
/* rgb */ color: rgb(186, 47, 168);
/* oklch */ color: oklch(56.3% 0.215 334.0);
Tailwind
colors: {
  custom: {
    50: '#d376c2',
    500: '#ba2fa8',
    950: '#000000',
  },
}
SCSS
$custom: #ba2fa8;
$custom-light: #d376c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2fa8",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 307.77,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56335,
    "c": 0.21502,
    "h": 334
  },
  "luminance": 0.15299
}

Semantic roles & 50–950 ramp

primary
#BA2FA8
secondary
#7CC986
accent
#E35945
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA2FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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