#BA2CB6#BA2CB6

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

Color values

HEX#BA2CB6
RGBrgb(186, 44, 182)
HSLhsl(302, 62%, 45%)
HSVhsv(302, 76%, 73%)
CMYKcmyk(0%, 76.3%, 2.2%, 27.1%)
CIE-LABlab(46.47, 69.61, -42.04)
CIE-LCHlch(46.47, 81.32, 328.87°)
OKLaboklab(56.88% 0.1961 -0.1163)
OKLCHoklch(56.88% 0.228 329.3)
XYZxyz(29.5937, 15.6202, 45.7032)
Luminance0.1562 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2CB6 #2CBA30
analogous
#772CBA #BA2CB6 #BA2C6F
triadic
#BA2CB6 #B6BA2C #2CB6BA
tetradic
#BA2CB6 #BA772C #2CBA30 #2C6FBA
square
#BA2CB6 #BA772C #2CBA30 #2C6FBA
split-complementary
#BA2CB6 #6FBA2C #2CBA77
monochromatic
#571555 #892086 #BA2CB6 #D54ED1 #E180DE

Accessibility & contrast

On white

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

On black

4.12
#BA2CB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##BA2CB6#FFFFFF#000000##FFFFFF
##BA2CB61.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1162BA
Deuteranopia (green-blind)
#5775B3
Tritanopia (blue-blind)
#C14270
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba2cb6;
/* rgb */ color: rgb(186, 44, 182);
/* oklch */ color: oklch(56.9% 0.228 329.3);
Tailwind
colors: {
  custom: {
    50: '#d375cc',
    500: '#ba2cb6',
    950: '#000000',
  },
}
SCSS
$custom: #ba2cb6;
$custom-light: #d375cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2cb6",
  "rgb": {
    "r": 186,
    "g": 44,
    "b": 182
  },
  "hsl": {
    "h": 301.69,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.5688,
    "c": 0.22803,
    "h": 329.3
  },
  "luminance": 0.15618
}

Semantic roles & 50–950 ramp

primary
#BA2CB6
secondary
#78CA7B
accent
#E54843
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA2CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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