#BA36BD#BA36BD

#BA36BD is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.1% C 0.223 H 327.0°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#BA36BD
RGBrgb(186, 54, 189)
HSLhsl(299, 56%, 48%)
HSVhsv(299, 71%, 74%)
CMYKcmyk(1.6%, 71.4%, 0%, 25.9%)
CIE-LABlab(47.95, 67.62, -43.79)
CIE-LCHlch(47.95, 80.56, 327.08°)
OKLaboklab(58.06% 0.1873 -0.1215)
OKLCHoklch(58.06% 0.223 327)
XYZxyz(30.7537, 16.7537, 49.7482)
Luminance0.1675 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA36BD #39BD36
analogous
#7736BD #BA36BD #BD367C
triadic
#BA36BD #BDBA36 #36BDBA
tetradic
#BA36BD #BD7736 #39BD36 #367CBD
square
#BA36BD #BD7736 #39BD36 #367CBD
split-complementary
#BA36BD #7CBD36 #36BD77
monochromatic
#5C1B5E #8B288D #BA36BD #CF5FD1 #DD8FDF

Accessibility & contrast

On white

4.83
#BA36BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#BA36BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA36BD
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA36BD#FFFFFF#000000##FFFFFF
##BA36BD1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1867C1
Deuteranopia (green-blind)
#5778BA
Tritanopia (blue-blind)
#BF4B76
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba36bd;
/* rgb */ color: rgb(186, 54, 189);
/* oklch */ color: oklch(58.1% 0.223 327.0);
Tailwind
colors: {
  custom: {
    50: '#d37ad1',
    500: '#ba36bd',
    950: '#000000',
  },
}
SCSS
$custom: #ba36bd;
$custom-light: #d37ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba36bd",
  "rgb": {
    "r": 186,
    "g": 54,
    "b": 189
  },
  "hsl": {
    "h": 298.667,
    "s": 55.556,
    "l": 47.647
  },
  "oklch": {
    "l": 0.58059,
    "c": 0.22319,
    "h": 327
  },
  "luminance": 0.16752
}

Semantic roles & 50–950 ramp

primary
#BA36BD
secondary
#87C985
accent
#DF494C
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA36BD

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

Preview Lab → · Contrast checker → · Palette generator →

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