#BA4CB7#BA4CB7

#BA4CB7 is a mid, vivid purple. Relative luminance 0.190; OKLCH L 60.0% C 0.190 H 328.7°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#BA4CB7
RGBrgb(186, 76, 183)
HSLhsl(302, 44%, 51%)
HSVhsv(302, 59%, 73%)
CMYKcmyk(0%, 59.1%, 1.6%, 27.1%)
CIE-LABlab(50.72, 57.99, -35.91)
CIE-LCHlch(50.72, 68.21, 328.23°)
OKLaboklab(59.96% 0.1626 -0.0988)
OKLCHoklch(59.96% 0.19 328.7)
XYZxyz(31.3810, 19.0289, 46.8106)
Luminance0.1903 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4CB7 #4CBA4F
analogous
#864CBA #BA4CB7 #BA4C80
triadic
#BA4CB7 #B7BA4C #4CB7BA
tetradic
#BA4CB7 #BA864C #4CBA4F #4C80BA
square
#BA4CB7 #BA864C #4CBA4F #4C80BA
split-complementary
#BA4CB7 #80BA4C #4CBA86
monochromatic
#652763 #91388F #BA4CB7 #CB78C9 #DCA4DB

Accessibility & contrast

On white

4.37
#BA4CB7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#BA4CB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4CB7
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4CB7#FFFFFF#000000##000000
##BA4CB71.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#426FBA
Deuteranopia (green-blind)
#677EB4
Tritanopia (blue-blind)
#C0587A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ba4cb7;
/* rgb */ color: rgb(186, 76, 183);
/* oklch */ color: oklch(60.0% 0.190 328.7);
Tailwind
colors: {
  custom: {
    50: '#d285cd',
    500: '#ba4cb7',
    950: '#000000',
  },
}
SCSS
$custom: #ba4cb7;
$custom-light: #d285cd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4cb7",
  "rgb": {
    "r": 186,
    "g": 76,
    "b": 183
  },
  "hsl": {
    "h": 301.636,
    "s": 44.355,
    "l": 51.373
  },
  "oklch": {
    "l": 0.59963,
    "c": 0.19029,
    "h": 328.7
  },
  "luminance": 0.19027
}

Semantic roles & 50–950 ramp

primary
#BA4CB7
secondary
#99C99A
accent
#D45754
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA4CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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