#BA4CBE#BA4CBE

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

Color values

HEX#BA4CBE
RGBrgb(186, 76, 190)
HSLhsl(298, 47%, 52%)
HSVhsv(298, 60%, 75%)
CMYKcmyk(2.1%, 60%, 0%, 25.5%)
CIE-LABlab(51.07, 59.21, -39.43)
CIE-LCHlch(51.07, 71.14, 326.34°)
OKLaboklab(60.33% 0.1632 -0.109)
OKLCHoklch(60.33% 0.196 326.3)
XYZxyz(32.1278, 19.3276, 50.7436)
Luminance0.1933 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4CBE #50BE4C
analogous
#814CBE #BA4CBE #BE4C89
triadic
#BA4CBE #BEBA4C #4CBEBA
tetradic
#BA4CBE #BE814C #50BE4C #4C89BE
square
#BA4CBE #BE814C #50BE4C #4C89BE
split-complementary
#BA4CBE #89BE4C #4CBE81
monochromatic
#672669 #933796 #BA4CBE #CB79CE #DDA6DF

Accessibility & contrast

On white

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

On black

4.87
#BA4CBE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4CBE
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4CBE#FFFFFF#000000##000000
##BA4CBE1.004.324.874.87
#FFFFFF4.321.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C71C1
Deuteranopia (green-blind)
#637FBB
Tritanopia (blue-blind)
#BF5B7E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba4cbe;
/* rgb */ color: rgb(186, 76, 190);
/* oklch */ color: oklch(60.3% 0.196 326.3);
Tailwind
colors: {
  custom: {
    50: '#d285d2',
    500: '#ba4cbe',
    950: '#000000',
  },
}
SCSS
$custom: #ba4cbe;
$custom-light: #d285d2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4cbe",
  "rgb": {
    "r": 186,
    "g": 76,
    "b": 190
  },
  "hsl": {
    "h": 297.895,
    "s": 46.721,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60329,
    "c": 0.19626,
    "h": 326.3
  },
  "luminance": 0.19326
}

Semantic roles & 50–950 ramp

primary
#BA4CBE
secondary
#9CCC9A
accent
#D65156
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #BA4CBE

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

Preview Lab → · Contrast checker → · Palette generator →

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