#BA2CDB#BA2CDB

#BA2CDB is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 59.2% C 0.256 H 318.9°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#BA2CDB
RGBrgb(186, 44, 219)
HSLhsl(289, 71%, 52%)
HSVhsv(289, 80%, 86%)
CMYKcmyk(15.1%, 79.9%, 0%, 14.1%)
CIE-LABlab(48.71, 75.80, -59.87)
CIE-LCHlch(48.71, 96.59, 321.70°)
OKLaboklab(59.18% 0.1931 -0.1684)
OKLCHoklch(59.18% 0.256 318.9)
XYZxyz(33.9348, 17.3566, 68.5668)
Luminance0.1736 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2CDB #4DDB2C
analogous
#632CDB #BA2CDB #DB2CA4
triadic
#BA2CDB #DBBA2C #2CDBBA
tetradic
#BA2CDB #DB632C #4DDB2C #2CA4DB
square
#BA2CDB #DB632C #4DDB2C #2CA4DB
split-complementary
#BA2CDB #A4DB2C #2CDB63
monochromatic
#651478 #911DAC #BA2CDB #CB60E4 #DC95ED

Accessibility & contrast

On white

4.70
#BA2CDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#BA2CDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2CDB
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2CDB#FFFFFF#000000##FFFFFF
##BA2CDB1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE0
Deuteranopia (green-blind)
#3978D7
Tritanopia (blue-blind)
#B95485
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba2cdb;
/* rgb */ color: rgb(186, 44, 219);
/* oklch */ color: oklch(59.2% 0.256 318.9);
Tailwind
colors: {
  custom: {
    50: '#d477e7',
    500: '#ba2cdb',
    950: '#000000',
  },
}
SCSS
$custom: #ba2cdb;
$custom-light: #d477e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2cdb",
  "rgb": {
    "r": 186,
    "g": 44,
    "b": 219
  },
  "hsl": {
    "h": 288.686,
    "s": 70.85,
    "l": 51.569
  },
  "oklch": {
    "l": 0.59176,
    "c": 0.25618,
    "h": 318.9
  },
  "luminance": 0.17355
}

Semantic roles & 50–950 ramp

primary
#BA2CDB
secondary
#99D88B
accent
#EE3A5C
background
#FDF7FE
surface
#FBEEFD
border
#D4C9D5
text
#150A16
muted
#837C84

Preview Lab

Preview with #BA2CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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