#BA2DB4#BA2DB4

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

Color values

HEX#BA2DB4
RGBrgb(186, 45, 180)
HSLhsl(303, 61%, 45%)
HSVhsv(303, 76%, 73%)
CMYKcmyk(0%, 75.8%, 3.2%, 27.1%)
CIE-LABlab(46.46, 69.01, -40.88)
CIE-LCHlch(46.46, 80.21, 329.36°)
OKLaboklab(56.84% 0.1953 -0.1129)
OKLCHoklch(56.84% 0.226 330)
XYZxyz(29.4262, 15.6135, 44.6350)
Luminance0.1561 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2DB4 #2DBA33
analogous
#792DBA #BA2DB4 #BA2D6E
triadic
#BA2DB4 #B4BA2D #2DB4BA
tetradic
#BA2DB4 #BA792D #2DBA33 #2D6EBA
square
#BA2DB4 #BA792D #2DBA33 #2D6EBA
split-complementary
#BA2DB4 #6EBA2D #2DBA79
monochromatic
#571555 #892184 #BA2DB4 #D550CF #E081DC

Accessibility & contrast

On white

5.09
#BA2DB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#BA2DB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2DB4
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2DB4#FFFFFF#000000##FFFFFF
##BA2DB41.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1862B8
Deuteranopia (green-blind)
#5975B1
Tritanopia (blue-blind)
#C1416F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba2db4;
/* rgb */ color: rgb(186, 45, 180);
/* oklch */ color: oklch(56.8% 0.226 330.0);
Tailwind
colors: {
  custom: {
    50: '#d376cb',
    500: '#ba2db4',
    950: '#000000',
  },
}
SCSS
$custom: #ba2db4;
$custom-light: #d376cb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2db4",
  "rgb": {
    "r": 186,
    "g": 45,
    "b": 180
  },
  "hsl": {
    "h": 302.553,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.56838,
    "c": 0.22563,
    "h": 330
  },
  "luminance": 0.15611
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA2DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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