#BA2BAF#BA2BAF

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

Color values

HEX#BA2BAF
RGBrgb(186, 43, 175)
HSLhsl(305, 62%, 45%)
HSVhsv(305, 77%, 73%)
CMYKcmyk(0%, 76.9%, 5.9%, 27.1%)
CIE-LABlab(45.99, 68.81, -38.67)
CIE-LCHlch(45.99, 78.94, 330.66°)
OKLaboklab(56.42% 0.1969 -0.1066)
OKLCHoklch(56.42% 0.224 331.6)
XYZxyz(28.8515, 15.2644, 41.9759)
Luminance0.1526 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2BAF #2BBA36
analogous
#7D2BBA #BA2BAF #BA2B68
triadic
#BA2BAF #AFBA2B #2BAFBA
tetradic
#BA2BAF #BA7D2B #2BBA36 #2B68BA
square
#BA2BAF #BA7D2B #2BBA36 #2B68BA
split-complementary
#BA2BAF #68BA2B #2BBA7D
monochromatic
#571451 #882080 #BA2BAF #D64CCB #E17EDA

Accessibility & contrast

On white

5.18
#BA2BAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#BA2BAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2BAF
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2BAF#FFFFFF#000000##FFFFFF
##BA2BAF1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba2baf;
/* rgb */ color: rgb(186, 43, 175);
/* oklch */ color: oklch(56.4% 0.224 331.6);
Tailwind
colors: {
  custom: {
    50: '#d375c7',
    500: '#ba2baf',
    950: '#000000',
  },
}
SCSS
$custom: #ba2baf;
$custom-light: #d375c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2baf",
  "rgb": {
    "r": 186,
    "g": 43,
    "b": 175
  },
  "hsl": {
    "h": 304.615,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.56416,
    "c": 0.22391,
    "h": 331.6
  },
  "luminance": 0.15262
}

Semantic roles & 50–950 ramp

primary
#BA2BAF
secondary
#77CA7D
accent
#E64F42
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BA2BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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