#BA2BB3#BA2BB3

#BA2BB3 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.6% C 0.227 H 330.3°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#BA2BB3
RGBrgb(186, 43, 179)
HSLhsl(303, 62%, 45%)
HSVhsv(303, 77%, 73%)
CMYKcmyk(0%, 76.9%, 3.8%, 27.1%)
CIE-LABlab(46.21, 69.43, -40.69)
CIE-LCHlch(46.21, 80.47, 329.63°)
OKLaboklab(56.64% 0.197 -0.1124)
OKLCHoklch(56.64% 0.227 330.3)
XYZxyz(29.2502, 15.4239, 44.0756)
Luminance0.1542 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2BB3 #2BBA32
analogous
#792BBA #BA2BB3 #BA2B6C
triadic
#BA2BB3 #B3BA2B #2BB3BA
tetradic
#BA2BB3 #BA792B #2BBA32 #2B6CBA
square
#BA2BB3 #BA792B #2BBA32 #2B6CBA
split-complementary
#BA2BB3 #6CBA2B #2BBA79
monochromatic
#571453 #882083 #BA2BB3 #D64CCF #E17EDC

Accessibility & contrast

On white

5.14
#BA2BB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#BA2BB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2BB3
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2BB3#FFFFFF#000000##FFFFFF
##BA2BB31.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1661B7
Deuteranopia (green-blind)
#5874B0
Tritanopia (blue-blind)
#C1406E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba2bb3;
/* rgb */ color: rgb(186, 43, 179);
/* oklch */ color: oklch(56.6% 0.227 330.3);
Tailwind
colors: {
  custom: {
    50: '#d375ca',
    500: '#ba2bb3',
    950: '#000000',
  },
}
SCSS
$custom: #ba2bb3;
$custom-light: #d375ca;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2bb3",
  "rgb": {
    "r": 186,
    "g": 43,
    "b": 179
  },
  "hsl": {
    "h": 302.937,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.56639,
    "c": 0.22678,
    "h": 330.3
  },
  "luminance": 0.15422
}

Semantic roles & 50–950 ramp

primary
#BA2BB3
secondary
#77CA7B
accent
#E64A42
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BA2BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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