#BA4BD9#BA4BD9

#BA4BD9 is a mid, highly saturated purple. Relative luminance 0.205; OKLCH L 61.8% C 0.222 H 318.1°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#BA4BD9
RGBrgb(186, 75, 217)
HSLhsl(287, 65%, 57%)
HSVhsv(287, 65%, 85%)
CMYKcmyk(14.3%, 65.4%, 0%, 14.9%)
CIE-LABlab(52.38, 64.63, -52.83)
CIE-LCHlch(52.38, 83.48, 320.74°)
OKLaboklab(61.75% 0.165 -0.148)
OKLCHoklch(61.75% 0.222 318.1)
XYZxyz(35.2884, 20.4825, 67.7269)
Luminance0.2048 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4BD9 #6AD94B
analogous
#734BD9 #BA4BD9 #D94BB1
triadic
#BA4BD9 #D9BA4B #4BD9BA
tetradic
#BA4BD9 #D9734B #6AD94B #4BB1D9
square
#BA4BD9 #D9734B #6AD94B #4BB1D9
split-complementary
#BA4BD9 #B1D94B #4BD973
monochromatic
#741E8C #9E28BF #BA4BD9 #CD7EE4 #E1B0EE

Accessibility & contrast

On white

4.12
#BA4BD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#BA4BD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4BD9
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4BD9#FFFFFF#000000##000000
##BA4BD91.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba4bd9;
/* rgb */ color: rgb(186, 75, 217);
/* oklch */ color: oklch(61.8% 0.222 318.1);
Tailwind
colors: {
  custom: {
    50: '#d285e5',
    500: '#ba4bd9',
    950: '#000000',
  },
}
SCSS
$custom: #ba4bd9;
$custom-light: #d285e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4bd9",
  "rgb": {
    "r": 186,
    "g": 75,
    "b": 217
  },
  "hsl": {
    "h": 286.901,
    "s": 65.138,
    "l": 57.255
  },
  "oklch": {
    "l": 0.6175,
    "c": 0.22164,
    "h": 318.1
  },
  "luminance": 0.20481
}

Semantic roles & 50–950 ramp

primary
#BA4BD9
secondary
#B0DDA3
accent
#E84064
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#150C16
muted
#837D84

Preview Lab

Preview with #BA4BD9

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

Preview Lab → · Contrast checker → · Palette generator →

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