#BA36BA#BA36BA

#BA36BA is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.9% C 0.221 H 328.0°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#BA36BA
RGBrgb(186, 54, 186)
HSLhsl(300, 55%, 47%)
HSVhsv(300, 71%, 73%)
CMYKcmyk(0%, 71%, 0%, 27.1%)
CIE-LABlab(47.78, 67.13, -42.30)
CIE-LCHlch(47.78, 79.34, 327.78°)
OKLaboklab(57.89% 0.1873 -0.1171)
OKLCHoklch(57.89% 0.221 328)
XYZxyz(30.4314, 16.6248, 48.0509)
Luminance0.1662 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA36BA #36BA36
analogous
#7836BA #BA36BA #BA3678
triadic
#BA36BA #BABA36 #36BABA
tetradic
#BA36BA #BA7836 #36BA36 #3678BA
square
#BA36BA #BA7836 #36BA36 #3678BA
split-complementary
#BA36BA #78BA36 #36BA78
monochromatic
#5B1A5B #8B288B #BA36BA #D05DD0 #DE8DDE

Accessibility & contrast

On white

4.86
#BA36BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#BA36BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA36BA
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA36BA#FFFFFF#000000##FFFFFF
##BA36BA1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E66BE
Deuteranopia (green-blind)
#5977B7
Tritanopia (blue-blind)
#C04A75
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba36ba;
/* rgb */ color: rgb(186, 54, 186);
/* oklch */ color: oklch(57.9% 0.221 328.0);
Tailwind
colors: {
  custom: {
    50: '#d27acf',
    500: '#ba36ba',
    950: '#000000',
  },
}
SCSS
$custom: #ba36ba;
$custom-light: #d27acf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba36ba",
  "rgb": {
    "r": 186,
    "g": 54,
    "b": 186
  },
  "hsl": {
    "h": 300,
    "s": 55,
    "l": 47.059
  },
  "oklch": {
    "l": 0.57888,
    "c": 0.22087,
    "h": 328
  },
  "luminance": 0.16623
}

Semantic roles & 50–950 ramp

primary
#BA36BA
secondary
#84C884
accent
#DE4949
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA36BA

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

Preview Lab → · Contrast checker → · Palette generator →

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