#BA2FB1#BA2FB1

#BA2FB1 is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.8% C 0.221 H 330.9°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#BA2FB1
RGBrgb(186, 47, 177)
HSLhsl(304, 60%, 46%)
HSVhsv(304, 75%, 73%)
CMYKcmyk(0%, 74.7%, 4.8%, 27.1%)
CIE-LABlab(46.51, 67.95, -39.04)
CIE-LCHlch(46.51, 78.36, 330.12°)
OKLaboklab(56.82% 0.1936 -0.1076)
OKLCHoklch(56.82% 0.221 330.9)
XYZxyz(29.2020, 15.6488, 43.0690)
Luminance0.1565 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2FB1 #2FBA38
analogous
#7D2FBA #BA2FB1 #BA2F6B
triadic
#BA2FB1 #B1BA2F #2FB1BA
tetradic
#BA2FB1 #BA7D2F #2FBA38 #2F6BBA
square
#BA2FB1 #BA7D2F #2FBA38 #2F6BBA
split-complementary
#BA2FB1 #6BBA2F #2FBA7D
monochromatic
#581654 #892383 #BA2FB1 #D353CB #E084DA

Accessibility & contrast

On white

5.09
#BA2FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#BA2FB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2FB1
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2FB1#FFFFFF#000000##FFFFFF
##BA2FB11.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2062B5
Deuteranopia (green-blind)
#5B75AE
Tritanopia (blue-blind)
#C1416E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba2fb1;
/* rgb */ color: rgb(186, 47, 177);
/* oklch */ color: oklch(56.8% 0.221 330.9);
Tailwind
colors: {
  custom: {
    50: '#d376c9',
    500: '#ba2fb1',
    950: '#000000',
  },
}
SCSS
$custom: #ba2fb1;
$custom-light: #d376c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2fb1",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 303.885,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56819,
    "c": 0.22147,
    "h": 330.9
  },
  "luminance": 0.15646
}

Semantic roles & 50–950 ramp

primary
#BA2FB1
secondary
#7CC981
accent
#E34F45
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA2FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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