#BA2DB9#BA2DB9

#BA2DB9 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 57.1% C 0.229 H 328.4°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#BA2DB9
RGBrgb(186, 45, 185)
HSLhsl(300, 61%, 45%)
HSVhsv(300, 76%, 73%)
CMYKcmyk(0%, 75.8%, 0.5%, 27.1%)
CIE-LABlab(46.74, 69.80, -43.37)
CIE-LCHlch(46.74, 82.18, 328.14°)
OKLaboklab(57.12% 0.1953 -0.1202)
OKLCHoklch(57.12% 0.229 328.4)
XYZxyz(29.9447, 15.8209, 47.3661)
Luminance0.1582 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2DB9 #2DBA2E
analogous
#752DBA #BA2DB9 #BA2D72
triadic
#BA2DB9 #B9BA2D #2DB9BA
tetradic
#BA2DB9 #BA752D #2DBA2E #2D72BA
square
#BA2DB9 #BA752D #2DBA2E #2D72BA
split-complementary
#BA2DB9 #72BA2D #2DBA75
monochromatic
#571557 #892188 #BA2DB9 #D550D4 #E081E0

Accessibility & contrast

On white

5.04
#BA2DB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#BA2DB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2DB9
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2DB9#FFFFFF#000000##FFFFFF
##BA2DB91.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A63BD
Deuteranopia (green-blind)
#5675B6
Tritanopia (blue-blind)
#C04472
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba2db9;
/* rgb */ color: rgb(186, 45, 185);
/* oklch */ color: oklch(57.1% 0.229 328.4);
Tailwind
colors: {
  custom: {
    50: '#d376ce',
    500: '#ba2db9',
    950: '#000000',
  },
}
SCSS
$custom: #ba2db9;
$custom-light: #d376ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2db9",
  "rgb": {
    "r": 186,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 300.426,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.57123,
    "c": 0.22931,
    "h": 328.4
  },
  "luminance": 0.15819
}

Semantic roles & 50–950 ramp

primary
#BA2DB9
secondary
#79C97A
accent
#E44544
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA2DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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