#BA2CAF#BA2CAF

#BA2CAF is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.5% C 0.223 H 331.6°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#BA2CAF
RGBrgb(186, 44, 175)
HSLhsl(305, 62%, 45%)
HSVhsv(305, 76%, 73%)
CMYKcmyk(0%, 76.3%, 5.9%, 27.1%)
CIE-LABlab(46.09, 68.53, -38.52)
CIE-LCHlch(46.09, 78.61, 330.66°)
OKLaboklab(56.49% 0.1961 -0.1061)
OKLCHoklch(56.49% 0.223 331.6)
XYZxyz(28.8883, 15.3380, 41.9882)
Luminance0.1534 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2CAF #2CBA37
analogous
#7E2CBA #BA2CAF #BA2C68
triadic
#BA2CAF #AFBA2C #2CAFBA
tetradic
#BA2CAF #BA7E2C #2CBA37 #2C68BA
square
#BA2CAF #BA7E2C #2CBA37 #2C68BA
split-complementary
#BA2CAF #68BA2C #2CBA7E
monochromatic
#571552 #892080 #BA2CAF #D54ECB #E180D9

Accessibility & contrast

On white

5.16
#BA2CAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#BA2CAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2CAF
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2CAF#FFFFFF#000000##FFFFFF
##BA2CAF1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F61B2
Deuteranopia (green-blind)
#5B74AC
Tritanopia (blue-blind)
#C23E6C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba2caf;
/* rgb */ color: rgb(186, 44, 175);
/* oklch */ color: oklch(56.5% 0.223 331.6);
Tailwind
colors: {
  custom: {
    50: '#d375c7',
    500: '#ba2caf',
    950: '#000000',
  },
}
SCSS
$custom: #ba2caf;
$custom-light: #d375c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2caf",
  "rgb": {
    "r": 186,
    "g": 44,
    "b": 175
  },
  "hsl": {
    "h": 304.648,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.56487,
    "c": 0.22297,
    "h": 331.6
  },
  "luminance": 0.15336
}

Semantic roles & 50–950 ramp

primary
#BA2CAF
secondary
#78CA7F
accent
#E55043
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BA2CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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