#BA36BC#BA36BC

#BA36BC is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 58.0% C 0.222 H 327.3°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#BA36BC
RGBrgb(186, 54, 188)
HSLhsl(299, 55%, 47%)
HSVhsv(299, 71%, 74%)
CMYKcmyk(1.1%, 71.3%, 0%, 26.3%)
CIE-LABlab(47.89, 67.46, -43.29)
CIE-LCHlch(47.89, 80.15, 327.31°)
OKLaboklab(58% 0.1873 -0.12)
OKLCHoklch(58% 0.222 327.3)
XYZxyz(30.6455, 16.7104, 49.1785)
Luminance0.1671 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA36BC #38BC36
analogous
#7736BC #BA36BC #BC367B
triadic
#BA36BC #BCBA36 #36BCBA
tetradic
#BA36BC #BC7736 #38BC36 #367BBC
square
#BA36BC #BC7736 #38BC36 #367BBC
split-complementary
#BA36BC #7BBC36 #36BC77
monochromatic
#5C1B5D #8B288C #BA36BC #CF5ED1 #DD8EDF

Accessibility & contrast

On white

4.84
#BA36BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#BA36BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA36BC
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA36BC#FFFFFF#000000##FFFFFF
##BA36BC1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A67C0
Deuteranopia (green-blind)
#5878B9
Tritanopia (blue-blind)
#BF4B76
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba36bc;
/* rgb */ color: rgb(186, 54, 188);
/* oklch */ color: oklch(58.0% 0.222 327.3);
Tailwind
colors: {
  custom: {
    50: '#d27ad1',
    500: '#ba36bc',
    950: '#000000',
  },
}
SCSS
$custom: #ba36bc;
$custom-light: #d27ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba36bc",
  "rgb": {
    "r": 186,
    "g": 54,
    "b": 188
  },
  "hsl": {
    "h": 299.104,
    "s": 55.372,
    "l": 47.451
  },
  "oklch": {
    "l": 0.58002,
    "c": 0.22241,
    "h": 327.3
  },
  "luminance": 0.16708
}

Semantic roles & 50–950 ramp

primary
#BA36BC
secondary
#86C985
accent
#DF494B
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA36BC

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

Preview Lab → · Contrast checker → · Palette generator →

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