#BA2DB3#BA2DB3

#BA2DB3 is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.8% C 0.225 H 330.3°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#BA2DB3
RGBrgb(186, 45, 179)
HSLhsl(303, 61%, 45%)
HSVhsv(303, 76%, 73%)
CMYKcmyk(0%, 75.8%, 3.8%, 27.1%)
CIE-LABlab(46.41, 68.85, -40.37)
CIE-LCHlch(46.41, 79.82, 329.61°)
OKLaboklab(56.78% 0.1953 -0.1115)
OKLCHoklch(56.78% 0.225 330.3)
XYZxyz(29.3247, 15.5729, 44.1005)
Luminance0.1557 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2DB3 #2DBA34
analogous
#7B2DBA #BA2DB3 #BA2D6C
triadic
#BA2DB3 #B3BA2D #2DB3BA
tetradic
#BA2DB3 #BA7B2D #2DBA34 #2D6CBA
square
#BA2DB3 #BA7B2D #2DBA34 #2D6CBA
split-complementary
#BA2DB3 #6CBA2D #2DBA7B
monochromatic
#571554 #892184 #BA2DB3 #D550CE #E081DC

Accessibility & contrast

On white

5.10
#BA2DB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#BA2DB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2DB3
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2DB3#FFFFFF#000000##FFFFFF
##BA2DB31.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A62B7
Deuteranopia (green-blind)
#5975B0
Tritanopia (blue-blind)
#C1416F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba2db3;
/* rgb */ color: rgb(186, 45, 179);
/* oklch */ color: oklch(56.8% 0.225 330.3);
Tailwind
colors: {
  custom: {
    50: '#d376ca',
    500: '#ba2db3',
    950: '#000000',
  },
}
SCSS
$custom: #ba2db3;
$custom-light: #d376ca;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2db3",
  "rgb": {
    "r": 186,
    "g": 45,
    "b": 179
  },
  "hsl": {
    "h": 302.979,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.56782,
    "c": 0.22489,
    "h": 330.3
  },
  "luminance": 0.15571
}

Semantic roles & 50–950 ramp

primary
#BA2DB3
secondary
#79C97D
accent
#E44C44
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA2DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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