#BA4AD9#BA4AD9

#BA4AD9 is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.6% C 0.223 H 318.2°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#BA4AD9
RGBrgb(186, 74, 217)
HSLhsl(287, 65%, 57%)
HSVhsv(287, 66%, 85%)
CMYKcmyk(14.3%, 65.9%, 0%, 14.9%)
CIE-LABlab(52.23, 65.05, -53.07)
CIE-LCHlch(52.23, 83.95, 320.79°)
OKLaboklab(61.64% 0.1661 -0.1487)
OKLCHoklch(61.64% 0.223 318.2)
XYZxyz(35.2211, 20.3479, 67.7045)
Luminance0.2035 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4AD9 #69D94A
analogous
#734AD9 #BA4AD9 #D94AB1
triadic
#BA4AD9 #D9BA4A #4AD9BA
tetradic
#BA4AD9 #D9734A #69D94A #4AB1D9
square
#BA4AD9 #D9734A #69D94A #4AB1D9
split-complementary
#BA4AD9 #B1D94A #4AD973
monochromatic
#731D8B #9D28BE #BA4AD9 #CD7DE4 #E1AFEE

Accessibility & contrast

On white

4.14
#BA4AD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#BA4AD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4AD9
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4AD9#FFFFFF#000000##000000
##BA4AD91.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0F75DD
Deuteranopia (green-blind)
#5080D6
Tritanopia (blue-blind)
#B9648C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba4ad9;
/* rgb */ color: rgb(186, 74, 217);
/* oklch */ color: oklch(61.6% 0.223 318.2);
Tailwind
colors: {
  custom: {
    50: '#d284e5',
    500: '#ba4ad9',
    950: '#000000',
  },
}
SCSS
$custom: #ba4ad9;
$custom-light: #d284e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4ad9",
  "rgb": {
    "r": 186,
    "g": 74,
    "b": 217
  },
  "hsl": {
    "h": 286.993,
    "s": 65.297,
    "l": 57.059
  },
  "oklch": {
    "l": 0.61642,
    "c": 0.22292,
    "h": 318.2
  },
  "luminance": 0.20346
}

Semantic roles & 50–950 ramp

primary
#BA4AD9
secondary
#AFDCA2
accent
#E84064
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#150C16
muted
#837D84

Preview Lab

Preview with #BA4AD9

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

Preview Lab → · Contrast checker → · Palette generator →

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