#BA49D9#BA49D9

#BA49D9 is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.5% C 0.224 H 318.2°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#BA49D9
RGBrgb(186, 73, 217)
HSLhsl(287, 65%, 57%)
HSVhsv(287, 66%, 85%)
CMYKcmyk(14.3%, 66.4%, 0%, 14.9%)
CIE-LABlab(52.08, 65.46, -53.31)
CIE-LCHlch(52.08, 84.42, 320.84°)
OKLaboklab(61.54% 0.1672 -0.1494)
OKLCHoklch(61.54% 0.224 318.2)
XYZxyz(35.1549, 20.2155, 67.6824)
Luminance0.2021 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA49D9 #68D949
analogous
#7249D9 #BA49D9 #D949B0
triadic
#BA49D9 #D9BA49 #49D9BA
tetradic
#BA49D9 #D97249 #68D949 #49B0D9
square
#BA49D9 #D97249 #68D949 #49B0D9
split-complementary
#BA49D9 #B0D949 #49D972
monochromatic
#731D8B #9D28BD #BA49D9 #CD7CE4 #E0AEEE

Accessibility & contrast

On white

4.16
#BA49D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#BA49D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA49D9
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA49D9#FFFFFF#000000##000000
##BA49D91.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0975DD
Deuteranopia (green-blind)
#5080D6
Tritanopia (blue-blind)
#B9638B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba49d9;
/* rgb */ color: rgb(186, 73, 217);
/* oklch */ color: oklch(61.5% 0.224 318.2);
Tailwind
colors: {
  custom: {
    50: '#d284e5',
    500: '#ba49d9',
    950: '#000000',
  },
}
SCSS
$custom: #ba49d9;
$custom-light: #d284e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba49d9",
  "rgb": {
    "r": 186,
    "g": 73,
    "b": 217
  },
  "hsl": {
    "h": 287.083,
    "s": 65.455,
    "l": 56.863
  },
  "oklch": {
    "l": 0.61536,
    "c": 0.22419,
    "h": 318.2
  },
  "luminance": 0.20214
}

Semantic roles & 50–950 ramp

primary
#BA49D9
secondary
#AEDCA2
accent
#E83F64
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA49D9

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

Preview Lab → · Contrast checker → · Palette generator →

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