#BA4ED2#BA4ED2

#BA4ED2 is a mid, highly saturated purple. Relative luminance 0.205; OKLCH L 61.7% C 0.211 H 319.9°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#BA4ED2
RGBrgb(186, 78, 210)
HSLhsl(289, 59%, 56%)
HSVhsv(289, 63%, 82%)
CMYKcmyk(11.4%, 62.9%, 0%, 17.6%)
CIE-LABlab(52.45, 62.01, -48.74)
CIE-LCHlch(52.45, 78.87, 321.83°)
OKLaboklab(61.67% 0.1617 -0.136)
OKLCHoklch(61.67% 0.211 319.9)
XYZxyz(34.6055, 20.5426, 63.1026)
Luminance0.2054 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4ED2 #66D24E
analogous
#784ED2 #BA4ED2 #D24EA8
triadic
#BA4ED2 #D2BA4E #4ED2BA
tetradic
#BA4ED2 #D2784E #66D24E #4EA8D2
square
#BA4ED2 #D2784E #66D24E #4EA8D2
split-complementary
#BA4ED2 #A8D24E #4ED278
monochromatic
#722284 #9C2EB5 #BA4ED2 #CD7FDE #E0B0EB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA4ED2#FFFFFF#000000##000000
##BA4ED21.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)
#2A76D6
Deuteranopia (green-blind)
#5981CF
Tritanopia (blue-blind)
#BB6489
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba4ed2;
/* rgb */ color: rgb(186, 78, 210);
/* oklch */ color: oklch(61.7% 0.211 319.9);
Tailwind
colors: {
  custom: {
    50: '#d286e0',
    500: '#ba4ed2',
    950: '#000000',
  },
}
SCSS
$custom: #ba4ed2;
$custom-light: #d286e0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4ed2",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 210
  },
  "hsl": {
    "h": 289.091,
    "s": 59.459,
    "l": 56.471
  },
  "oklch": {
    "l": 0.61671,
    "c": 0.21129,
    "h": 319.9
  },
  "luminance": 0.20541
}

Semantic roles & 50–950 ramp

primary
#BA4ED2
secondary
#ADD9A3
accent
#E34562
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA4ED2

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

Preview Lab → · Contrast checker → · Palette generator →

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