#BA4CD9#BA4CD9

#BA4CD9 is a mid, highly saturated purple. Relative luminance 0.206; OKLCH L 61.9% C 0.220 H 318.1°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#BA4CD9
RGBrgb(186, 76, 217)
HSLhsl(287, 65%, 57%)
HSVhsv(287, 65%, 85%)
CMYKcmyk(14.3%, 65%, 0%, 14.9%)
CIE-LABlab(52.53, 64.21, -52.59)
CIE-LCHlch(52.53, 82.99, 320.68°)
OKLaboklab(61.86% 0.1639 -0.1473)
OKLCHoklch(61.86% 0.22 318.1)
XYZxyz(35.3568, 20.6192, 67.7497)
Luminance0.2062 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4CD9 #6BD94C
analogous
#744CD9 #BA4CD9 #D94CB1
triadic
#BA4CD9 #D9BA4C #4CD9BA
tetradic
#BA4CD9 #D9744C #6BD94C #4CB1D9
square
#BA4CD9 #D9744C #6BD94C #4CB1D9
split-complementary
#BA4CD9 #B1D94C #4CD974
monochromatic
#741E8D #9E29BF #BA4CD9 #CD7EE4 #E1B1EE

Accessibility & contrast

On white

4.10
#BA4CD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#BA4CD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4CD9
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4CD9#FFFFFF#000000##000000
##BA4CD91.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1776DD
Deuteranopia (green-blind)
#5281D6
Tritanopia (blue-blind)
#B9658C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba4cd9;
/* rgb */ color: rgb(186, 76, 217);
/* oklch */ color: oklch(61.9% 0.220 318.1);
Tailwind
colors: {
  custom: {
    50: '#d286e5',
    500: '#ba4cd9',
    950: '#000000',
  },
}
SCSS
$custom: #ba4cd9;
$custom-light: #d286e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4cd9",
  "rgb": {
    "r": 186,
    "g": 76,
    "b": 217
  },
  "hsl": {
    "h": 286.809,
    "s": 64.977,
    "l": 57.451
  },
  "oklch": {
    "l": 0.6186,
    "c": 0.22034,
    "h": 318.1
  },
  "luminance": 0.20618
}

Semantic roles & 50–950 ramp

primary
#BA4CD9
secondary
#B0DDA4
accent
#E84065
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#150C16
muted
#837D84

Preview Lab

Preview with #BA4CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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