#BA4ED6#BA4ED6

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

Color values

HEX#BA4ED6
RGBrgb(186, 78, 214)
HSLhsl(288, 62%, 57%)
HSVhsv(288, 64%, 84%)
CMYKcmyk(13.1%, 63.6%, 0%, 16.1%)
CIE-LABlab(52.67, 62.77, -50.66)
CIE-LCHlch(52.67, 80.67, 321.09°)
OKLaboklab(61.9% 0.1617 -0.1417)
OKLCHoklch(61.9% 0.215 318.8)
XYZxyz(35.1101, 20.7445, 65.7600)
Luminance0.2074 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4ED6 #6AD64E
analogous
#764ED6 #BA4ED6 #D64EAE
triadic
#BA4ED6 #D6BA4E #4ED6BA
tetradic
#BA4ED6 #D6764E #6AD64E #4EAED6
square
#BA4ED6 #D6764E #6AD64E #4EAED6
split-complementary
#BA4ED6 #AED64E #4ED676
monochromatic
#74208A #9E2BBB #BA4ED6 #CD80E2 #E1B1ED

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA4ED6#FFFFFF#000000##000000
##BA4ED61.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)
#2377DA
Deuteranopia (green-blind)
#5681D3
Tritanopia (blue-blind)
#BA668B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba4ed6;
/* rgb */ color: rgb(186, 78, 214);
/* oklch */ color: oklch(61.9% 0.215 318.8);
Tailwind
colors: {
  custom: {
    50: '#d287e3',
    500: '#ba4ed6',
    950: '#000000',
  },
}
SCSS
$custom: #ba4ed6;
$custom-light: #d287e3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4ed6",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 214
  },
  "hsl": {
    "h": 287.647,
    "s": 62.385,
    "l": 57.255
  },
  "oklch": {
    "l": 0.61904,
    "c": 0.21496,
    "h": 318.8
  },
  "luminance": 0.20743
}

Semantic roles & 50–950 ramp

primary
#BA4ED6
secondary
#B0DBA4
accent
#E54264
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#140C15
muted
#837D84

Preview Lab

Preview with #BA4ED6

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

Preview Lab → · Contrast checker → · Palette generator →

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