#BA4CBD#BA4CBD

#BA4CBD is a mid, vivid purple. Relative luminance 0.193; OKLCH L 60.3% C 0.195 H 326.6°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#BA4CBD
RGBrgb(186, 76, 189)
HSLhsl(298, 46%, 52%)
HSVhsv(298, 60%, 74%)
CMYKcmyk(1.6%, 59.8%, 0%, 25.9%)
CIE-LABlab(51.02, 59.03, -38.93)
CIE-LCHlch(51.02, 70.71, 326.60°)
OKLaboklab(60.28% 0.1631 -0.1075)
OKLCHoklch(60.28% 0.195 326.6)
XYZxyz(32.0189, 19.2841, 50.1700)
Luminance0.1928 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4CBD #4FBD4C
analogous
#824CBD #BA4CBD #BD4C88
triadic
#BA4CBD #BDBA4C #4CBDBA
tetradic
#BA4CBD #BD824C #4FBD4C #4C88BD
square
#BA4CBD #BD824C #4FBD4C #4C88BD
split-complementary
#BA4CBD #88BD4C #4CBD82
monochromatic
#662668 #923795 #BA4CBD #CB79CD #DCA5DE

Accessibility & contrast

On white

4.32
#BA4CBD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#BA4CBD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4CBD
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4CBD#FFFFFF#000000##000000
##BA4CBD1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D70C0
Deuteranopia (green-blind)
#647EBA
Tritanopia (blue-blind)
#BF5B7E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ba4cbd;
/* rgb */ color: rgb(186, 76, 189);
/* oklch */ color: oklch(60.3% 0.195 326.6);
Tailwind
colors: {
  custom: {
    50: '#d285d1',
    500: '#ba4cbd',
    950: '#000000',
  },
}
SCSS
$custom: #ba4cbd;
$custom-light: #d285d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4cbd",
  "rgb": {
    "r": 186,
    "g": 76,
    "b": 189
  },
  "hsl": {
    "h": 298.407,
    "s": 46.122,
    "l": 51.961
  },
  "oklch": {
    "l": 0.60276,
    "c": 0.1954,
    "h": 326.6
  },
  "luminance": 0.19282
}

Semantic roles & 50–950 ramp

primary
#BA4CBD
secondary
#9BCB9A
accent
#D65256
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #BA4CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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