#BA4DCB#BA4DCB

#BA4DCB is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.2% C 0.206 H 322.0°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#BA4DCB
RGBrgb(186, 77, 203)
HSLhsl(292, 55%, 55%)
HSVhsv(292, 62%, 80%)
CMYKcmyk(8.4%, 62.1%, 0%, 20.4%)
CIE-LABlab(51.91, 61.13, -45.59)
CIE-LCHlch(51.91, 76.26, 323.28°)
OKLaboklab(61.16% 0.1627 -0.1269)
OKLCHoklch(61.16% 0.206 322)
XYZxyz(33.6819, 20.0604, 58.5862)
Luminance0.2006 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4DCB #5ECB4D
analogous
#7B4DCB #BA4DCB #CB4D9D
triadic
#BA4DCB #CBBA4D #4DCBBA
tetradic
#BA4DCB #CB7B4D #5ECB4D #4D9DCB
square
#BA4DCB #CB7B4D #5ECB4D #4D9DCB
split-complementary
#BA4DCB #9DCB4D #4DCB7B
monochromatic
#6E247A #9931A9 #BA4DCB #CC7CD9 #DFACE7

Accessibility & contrast

On white

4.19
#BA4DCB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#BA4DCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4DCB
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4DCB#FFFFFF#000000##000000
##BA4DCB1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3174CF
Deuteranopia (green-blind)
#5C80C8
Tritanopia (blue-blind)
#BC6185
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba4dcb;
/* rgb */ color: rgb(186, 77, 203);
/* oklch */ color: oklch(61.2% 0.206 322.0);
Tailwind
colors: {
  custom: {
    50: '#d286db',
    500: '#ba4dcb',
    950: '#000000',
  },
}
SCSS
$custom: #ba4dcb;
$custom-light: #d286db;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4dcb",
  "rgb": {
    "r": 186,
    "g": 77,
    "b": 203
  },
  "hsl": {
    "h": 291.905,
    "s": 54.783,
    "l": 54.902
  },
  "oklch": {
    "l": 0.61157,
    "c": 0.20632,
    "h": 322
  },
  "luminance": 0.20059
}

Semantic roles & 50–950 ramp

primary
#BA4DCB
secondary
#A7D49F
accent
#DE4A5E
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA4DCB

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

Preview Lab → · Contrast checker → · Palette generator →

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