#BA2CB8#BA2CB8

#BA2CB8 is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 57.0% C 0.230 H 328.7°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#BA2CB8
RGBrgb(186, 44, 184)
HSLhsl(301, 62%, 45%)
HSVhsv(301, 76%, 73%)
CMYKcmyk(0%, 76.3%, 1.1%, 27.1%)
CIE-LABlab(46.58, 69.93, -43.03)
CIE-LCHlch(46.58, 82.11, 328.39°)
OKLaboklab(56.99% 0.1961 -0.1192)
OKLCHoklch(56.99% 0.23 328.7)
XYZxyz(29.8018, 15.7034, 46.7995)
Luminance0.1570 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2CB8 #2CBA2E
analogous
#752CBA #BA2CB8 #BA2C71
triadic
#BA2CB8 #B8BA2C #2CB8BA
tetradic
#BA2CB8 #BA752C #2CBA2E #2C71BA
square
#BA2CB8 #BA752C #2CBA2E #2C71BA
split-complementary
#BA2CB8 #71BA2C #2CBA75
monochromatic
#571556 #892087 #BA2CB8 #D54ED3 #E180DF

Accessibility & contrast

On white

5.07
#BA2CB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA2CB8
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2CB8#FFFFFF#000000##FFFFFF
##BA2CB81.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A63BC
Deuteranopia (green-blind)
#5675B5
Tritanopia (blue-blind)
#C04371
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba2cb8;
/* rgb */ color: rgb(186, 44, 184);
/* oklch */ color: oklch(57.0% 0.230 328.7);
Tailwind
colors: {
  custom: {
    50: '#d376ce',
    500: '#ba2cb8',
    950: '#000000',
  },
}
SCSS
$custom: #ba2cb8;
$custom-light: #d376ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2cb8",
  "rgb": {
    "r": 186,
    "g": 44,
    "b": 184
  },
  "hsl": {
    "h": 300.845,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.56994,
    "c": 0.2295,
    "h": 328.7
  },
  "luminance": 0.15701
}

Semantic roles & 50–950 ramp

primary
#BA2CB8
secondary
#78CA79
accent
#E54543
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA2CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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