#BA2DB7#BA2DB7

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

Color values

HEX#BA2DB7
RGBrgb(186, 45, 183)
HSLhsl(301, 61%, 45%)
HSVhsv(301, 76%, 73%)
CMYKcmyk(0%, 75.8%, 1.6%, 27.1%)
CIE-LABlab(46.63, 69.48, -42.38)
CIE-LCHlch(46.63, 81.38, 328.62°)
OKLaboklab(57.01% 0.1953 -0.1173)
OKLCHoklch(57.01% 0.228 329)
XYZxyz(29.7351, 15.7370, 46.2620)
Luminance0.1573 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2DB7 #2DBA30
analogous
#772DBA #BA2DB7 #BA2D70
triadic
#BA2DB7 #B7BA2D #2DB7BA
tetradic
#BA2DB7 #BA772D #2DBA30 #2D70BA
square
#BA2DB7 #BA772D #2DBA30 #2D70BA
split-complementary
#BA2DB7 #70BA2D #2DBA77
monochromatic
#571556 #892187 #BA2DB7 #D550D2 #E081DE

Accessibility & contrast

On white

5.06
#BA2DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#BA2DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2DB7
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2DB7#FFFFFF#000000##FFFFFF
##BA2DB71.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1063BB
Deuteranopia (green-blind)
#5775B4
Tritanopia (blue-blind)
#C04371
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba2db7;
/* rgb */ color: rgb(186, 45, 183);
/* oklch */ color: oklch(57.0% 0.228 329.0);
Tailwind
colors: {
  custom: {
    50: '#d376cd',
    500: '#ba2db7',
    950: '#000000',
  },
}
SCSS
$custom: #ba2db7;
$custom-light: #d376cd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2db7",
  "rgb": {
    "r": 186,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 301.277,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.57008,
    "c": 0.22783,
    "h": 329
  },
  "luminance": 0.15735
}

Semantic roles & 50–950 ramp

primary
#BA2DB7
secondary
#79C97B
accent
#E44744
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA2DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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