#BA4DD9#BA4DD9

#BA4DD9 is a mid, highly saturated purple. Relative luminance 0.208; OKLCH L 62.0% C 0.219 H 318.0°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#BA4DD9
RGBrgb(186, 77, 217)
HSLhsl(287, 65%, 58%)
HSVhsv(287, 65%, 85%)
CMYKcmyk(14.3%, 64.5%, 0%, 14.9%)
CIE-LABlab(52.68, 63.78, -52.34)
CIE-LCHlch(52.68, 82.51, 320.63°)
OKLaboklab(61.97% 0.1628 -0.1466)
OKLCHoklch(61.97% 0.219 318)
XYZxyz(35.4262, 20.7581, 67.7728)
Luminance0.2076 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4DD9 #6CD94D
analogous
#744DD9 #BA4DD9 #D94DB2
triadic
#BA4DD9 #D9BA4D #4DD9BA
tetradic
#BA4DD9 #D9744D #6CD94D #4DB2D9
square
#BA4DD9 #D9744D #6CD94D #4DB2D9
split-complementary
#BA4DD9 #B2D94D #4DD974
monochromatic
#751E8D #9E29C0 #BA4DD9 #CE7FE4 #E1B2EF

Accessibility & contrast

On white

4.08
#BA4DD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#BA4DD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4DD9
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4DD9#FFFFFF#000000##000000
##BA4DD91.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B77DD
Deuteranopia (green-blind)
#5381D6
Tritanopia (blue-blind)
#B9668D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba4dd9;
/* rgb */ color: rgb(186, 77, 217);
/* oklch */ color: oklch(62.0% 0.219 318.0);
Tailwind
colors: {
  custom: {
    50: '#d286e5',
    500: '#ba4dd9',
    950: '#000000',
  },
}
SCSS
$custom: #ba4dd9;
$custom-light: #d286e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4dd9",
  "rgb": {
    "r": 186,
    "g": 77,
    "b": 217
  },
  "hsl": {
    "h": 286.714,
    "s": 64.815,
    "l": 57.647
  },
  "oklch": {
    "l": 0.6197,
    "c": 0.21904,
    "h": 318
  },
  "luminance": 0.20757
}

Semantic roles & 50–950 ramp

primary
#BA4DD9
secondary
#B1DDA5
accent
#E84065
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA4DD9

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

Preview Lab → · Contrast checker → · Palette generator →

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