#BA4CD8#BA4CD8

#BA4CD8 is a mid, highly saturated purple. Relative luminance 0.206; OKLCH L 61.8% C 0.219 H 318.3°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#BA4CD8
RGBrgb(186, 76, 216)
HSLhsl(287, 64%, 57%)
HSVhsv(287, 65%, 85%)
CMYKcmyk(13.9%, 64.8%, 0%, 15.3%)
CIE-LABlab(52.47, 64.01, -52.11)
CIE-LCHlch(52.47, 82.54, 320.85°)
OKLaboklab(61.8% 0.1639 -0.1459)
OKLCHoklch(61.8% 0.219 318.3)
XYZxyz(35.2271, 20.5674, 67.0667)
Luminance0.2057 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4CD8 #6AD84C
analogous
#744CD8 #BA4CD8 #D84CB0
triadic
#BA4CD8 #D8BA4C #4CD8BA
tetradic
#BA4CD8 #D8744C #6AD84C #4CB0D8
square
#BA4CD8 #D8744C #6AD84C #4CB0D8
split-complementary
#BA4CD8 #B0D84C #4CD874
monochromatic
#741E8B #9E29BE #BA4CD8 #CD7EE3 #E1B1EE

Accessibility & contrast

On white

4.11
#BA4CD8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#BA4CD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4CD8
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4CD8#FFFFFF#000000##000000
##BA4CD81.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A76DC
Deuteranopia (green-blind)
#5381D5
Tritanopia (blue-blind)
#BA658C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba4cd8;
/* rgb */ color: rgb(186, 76, 216);
/* oklch */ color: oklch(61.8% 0.219 318.3);
Tailwind
colors: {
  custom: {
    50: '#d285e5',
    500: '#ba4cd8',
    950: '#000000',
  },
}
SCSS
$custom: #ba4cd8;
$custom-light: #d285e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4cd8",
  "rgb": {
    "r": 186,
    "g": 76,
    "b": 216
  },
  "hsl": {
    "h": 287.143,
    "s": 64.22,
    "l": 57.255
  },
  "oklch": {
    "l": 0.618,
    "c": 0.21943,
    "h": 318.3
  },
  "luminance": 0.20566
}

Semantic roles & 50–950 ramp

primary
#BA4CD8
secondary
#B0DCA4
accent
#E74164
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#150C16
muted
#837D84

Preview Lab

Preview with #BA4CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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