#BA4DD8#BA4DD8

#BA4DD8 is a mid, highly saturated purple. Relative luminance 0.207; OKLCH L 61.9% C 0.218 H 318.3°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#BA4DD8
RGBrgb(186, 77, 216)
HSLhsl(287, 64%, 57%)
HSVhsv(287, 64%, 85%)
CMYKcmyk(13.9%, 64.4%, 0%, 15.3%)
CIE-LABlab(52.63, 63.59, -51.87)
CIE-LCHlch(52.63, 82.06, 320.80°)
OKLaboklab(61.91% 0.1628 -0.1452)
OKLCHoklch(61.91% 0.218 318.3)
XYZxyz(35.2965, 20.7062, 67.0899)
Luminance0.2071 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4DD8 #6BD84D
analogous
#744DD8 #BA4DD8 #D84DB1
triadic
#BA4DD8 #D8BA4D #4DD8BA
tetradic
#BA4DD8 #D8744D #6BD84D #4DB1D8
square
#BA4DD8 #D8744D #6BD84D #4DB1D8
split-complementary
#BA4DD8 #B1D84D #4DD874
monochromatic
#741F8C #9E2ABE #BA4DD8 #CD7FE3 #E1B1EE

Accessibility & contrast

On white

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

On black

5.14
#BA4DD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4DD8
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4DD8#FFFFFF#000000##000000
##BA4DD81.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D76DC
Deuteranopia (green-blind)
#5481D5
Tritanopia (blue-blind)
#B9668C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba4dd8;
/* rgb */ color: rgb(186, 77, 216);
/* oklch */ color: oklch(61.9% 0.218 318.3);
Tailwind
colors: {
  custom: {
    50: '#d286e5',
    500: '#ba4dd8',
    950: '#000000',
  },
}
SCSS
$custom: #ba4dd8;
$custom-light: #d286e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4dd8",
  "rgb": {
    "r": 186,
    "g": 77,
    "b": 216
  },
  "hsl": {
    "h": 287.05,
    "s": 64.055,
    "l": 57.451
  },
  "oklch": {
    "l": 0.61911,
    "c": 0.21812,
    "h": 318.3
  },
  "luminance": 0.20705
}

Semantic roles & 50–950 ramp

primary
#BA4DD8
secondary
#B0DCA4
accent
#E74165
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA4DD8

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

Preview Lab → · Contrast checker → · Palette generator →

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