#BA4BCC#BA4BCC

#BA4BCC is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.0% C 0.210 H 321.8°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#BA4BCC
RGBrgb(186, 75, 204)
HSLhsl(292, 56%, 55%)
HSVhsv(292, 63%, 80%)
CMYKcmyk(8.8%, 63.2%, 0%, 20%)
CIE-LABlab(51.65, 62.18, -46.58)
CIE-LCHlch(51.65, 77.69, 323.16°)
OKLaboklab(60.99% 0.1651 -0.1297)
OKLCHoklch(60.99% 0.21 321.8)
XYZxyz(33.6637, 19.8326, 59.1699)
Luminance0.1983 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4BCC #5DCC4B
analogous
#7A4BCC #BA4BCC #CC4B9E
triadic
#BA4BCC #CCBA4B #4BCCBA
tetradic
#BA4BCC #CC7A4B #5DCC4B #4B9ECC
square
#BA4BCC #CC7A4B #5DCC4B #4B9ECC
split-complementary
#BA4BCC #9ECC4B #4BCC7A
monochromatic
#6E237A #9930AA #BA4BCC #CC7BDA #DFAAE7

Accessibility & contrast

On white

4.23
#BA4BCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#BA4BCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4BCC
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4BCC#FFFFFF#000000##000000
##BA4BCC1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C73D0
Deuteranopia (green-blind)
#5A7FC9
Tritanopia (blue-blind)
#BC6085
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba4bcc;
/* rgb */ color: rgb(186, 75, 204);
/* oklch */ color: oklch(61.0% 0.210 321.8);
Tailwind
colors: {
  custom: {
    50: '#d285dc',
    500: '#ba4bcc',
    950: '#000000',
  },
}
SCSS
$custom: #ba4bcc;
$custom-light: #d285dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4bcc",
  "rgb": {
    "r": 186,
    "g": 75,
    "b": 204
  },
  "hsl": {
    "h": 291.628,
    "s": 55.844,
    "l": 54.706
  },
  "oklch": {
    "l": 0.60987,
    "c": 0.20994,
    "h": 321.8
  },
  "luminance": 0.19831
}

Semantic roles & 50–950 ramp

primary
#BA4BCC
secondary
#A6D59E
accent
#DF495E
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #BA4BCC

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

Preview Lab → · Contrast checker → · Palette generator →

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