#BA2DB6#BA2DB6

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

Color values

HEX#BA2DB6
RGBrgb(186, 45, 182)
HSLhsl(302, 61%, 45%)
HSVhsv(302, 76%, 73%)
CMYKcmyk(0%, 75.8%, 2.2%, 27.1%)
CIE-LABlab(46.57, 69.32, -41.88)
CIE-LCHlch(46.57, 80.99, 328.86°)
OKLaboklab(56.95% 0.1953 -0.1159)
OKLCHoklch(56.95% 0.227 329.3)
XYZxyz(29.6314, 15.6956, 45.7158)
Luminance0.1569 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2DB6 #2DBA31
analogous
#772DBA #BA2DB6 #BA2D70
triadic
#BA2DB6 #B6BA2D #2DB6BA
tetradic
#BA2DB6 #BA772D #2DBA31 #2D70BA
square
#BA2DB6 #BA772D #2DBA31 #2D70BA
split-complementary
#BA2DB6 #70BA2D #2DBA77
monochromatic
#571556 #892186 #BA2DB6 #D550D1 #E081DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA2DB6#FFFFFF#000000##FFFFFF
##BA2DB61.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)
#1362BA
Deuteranopia (green-blind)
#5775B3
Tritanopia (blue-blind)
#C14270
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba2db6;
/* rgb */ color: rgb(186, 45, 182);
/* oklch */ color: oklch(57.0% 0.227 329.3);
Tailwind
colors: {
  custom: {
    50: '#d376cc',
    500: '#ba2db6',
    950: '#000000',
  },
}
SCSS
$custom: #ba2db6;
$custom-light: #d376cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2db6",
  "rgb": {
    "r": 186,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 301.702,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.56951,
    "c": 0.2271,
    "h": 329.3
  },
  "luminance": 0.15693
}

Semantic roles & 50–950 ramp

primary
#BA2DB6
secondary
#79C97C
accent
#E44844
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA2DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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