#BA2FBB#BA2FBB

#BA2FBB is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.4% C 0.229 H 327.7°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#BA2FBB
RGBrgb(186, 47, 187)
HSLhsl(300, 60%, 46%)
HSVhsv(300, 75%, 73%)
CMYKcmyk(0.5%, 74.9%, 0%, 26.7%)
CIE-LABlab(47.06, 69.53, -44.04)
CIE-LCHlch(47.06, 82.30, 327.65°)
OKLaboklab(57.39% 0.1936 -0.1221)
OKLCHoklch(57.39% 0.229 327.7)
XYZxyz(30.2355, 16.0622, 48.5119)
Luminance0.1606 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2FBB #30BB2F
analogous
#742FBB #BA2FBB #BB2F76
triadic
#BA2FBB #BBBA2F #2FBBBA
tetradic
#BA2FBB #BB742F #30BB2F #2F76BB
square
#BA2FBB #BB742F #30BB2F #2F76BB
split-complementary
#BA2FBB #76BB2F #2FBB74
monochromatic
#591659 #89238A #BA2FBB #D353D4 #DF84E0

Accessibility & contrast

On white

4.99
#BA2FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#BA2FBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2FBB
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2FBB#FFFFFF#000000##FFFFFF
##BA2FBB1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A64BF
Deuteranopia (green-blind)
#5576B8
Tritanopia (blue-blind)
#C04673
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba2fbb;
/* rgb */ color: rgb(186, 47, 187);
/* oklch */ color: oklch(57.4% 0.229 327.7);
Tailwind
colors: {
  custom: {
    50: '#d377d0',
    500: '#ba2fbb',
    950: '#000000',
  },
}
SCSS
$custom: #ba2fbb;
$custom-light: #d377d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2fbb",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 187
  },
  "hsl": {
    "h": 299.571,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.57386,
    "c": 0.22888,
    "h": 327.7
  },
  "luminance": 0.1606
}

Semantic roles & 50–950 ramp

primary
#BA2FBB
secondary
#7DC97C
accent
#E34546
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA2FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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