#BA2FB2#BA2FB2

#BA2FB2 is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.9% C 0.222 H 330.6°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#BA2FB2
RGBrgb(186, 47, 178)
HSLhsl(303, 60%, 46%)
HSVhsv(303, 75%, 73%)
CMYKcmyk(0%, 74.7%, 4.3%, 27.1%)
CIE-LABlab(46.56, 68.10, -39.54)
CIE-LCHlch(46.56, 78.75, 329.86°)
OKLaboklab(56.88% 0.1936 -0.1091)
OKLCHoklch(56.88% 0.222 330.6)
XYZxyz(29.3020, 15.6888, 43.5958)
Luminance0.1569 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2FB2 #2FBA37
analogous
#7C2FBA #BA2FB2 #BA2F6C
triadic
#BA2FB2 #B2BA2F #2FB2BA
tetradic
#BA2FB2 #BA7C2F #2FBA37 #2F6CBA
square
#BA2FB2 #BA7C2F #2FBA37 #2F6CBA
split-complementary
#BA2FB2 #6CBA2F #2FBA7C
monochromatic
#581654 #892383 #BA2FB2 #D353CC #E084DB

Accessibility & contrast

On white

5.08
#BA2FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#BA2FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2FB2
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2FB2#FFFFFF#000000##FFFFFF
##BA2FB21.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F62B6
Deuteranopia (green-blind)
#5A75AF
Tritanopia (blue-blind)
#C1426E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba2fb2;
/* rgb */ color: rgb(186, 47, 178);
/* oklch */ color: oklch(56.9% 0.222 330.6);
Tailwind
colors: {
  custom: {
    50: '#d376c9',
    500: '#ba2fb2',
    950: '#000000',
  },
}
SCSS
$custom: #ba2fb2;
$custom-light: #d376c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2fb2",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 303.453,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56875,
    "c": 0.22221,
    "h": 330.6
  },
  "luminance": 0.15686
}

Semantic roles & 50–950 ramp

primary
#BA2FB2
secondary
#7CC980
accent
#E34E45
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA2FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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