#BA36B6#BA36B6

#BA36B6 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.7% C 0.218 H 329.3°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#BA36B6
RGBrgb(186, 54, 182)
HSLhsl(302, 55%, 47%)
HSVhsv(302, 71%, 73%)
CMYKcmyk(0%, 71%, 2.2%, 27.1%)
CIE-LABlab(47.57, 66.48, -40.30)
CIE-LCHlch(47.57, 77.74, 328.78°)
OKLaboklab(57.66% 0.1872 -0.1113)
OKLCHoklch(57.66% 0.218 329.3)
XYZxyz(30.0121, 16.4571, 45.8427)
Luminance0.1646 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA36B6 #36BA3A
analogous
#7C36BA #BA36B6 #BA3674
triadic
#BA36B6 #B6BA36 #36B6BA
tetradic
#BA36B6 #BA7C36 #36BA3A #3674BA
square
#BA36B6 #BA7C36 #36BA3A #3674BA
split-complementary
#BA36B6 #74BA36 #36BA7C
monochromatic
#5B1A59 #8B2888 #BA36B6 #D05DCD #DE8DDB

Accessibility & contrast

On white

4.89
#BA36B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#BA36B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA36B6
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA36B6#FFFFFF#000000##FFFFFF
##BA36B61.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2466BA
Deuteranopia (green-blind)
#5B77B3
Tritanopia (blue-blind)
#C04873
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba36b6;
/* rgb */ color: rgb(186, 54, 182);
/* oklch */ color: oklch(57.7% 0.218 329.3);
Tailwind
colors: {
  custom: {
    50: '#d27acc',
    500: '#ba36b6',
    950: '#000000',
  },
}
SCSS
$custom: #ba36b6;
$custom-light: #d27acc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba36b6",
  "rgb": {
    "r": 186,
    "g": 54,
    "b": 182
  },
  "hsl": {
    "h": 301.818,
    "s": 55,
    "l": 47.059
  },
  "oklch": {
    "l": 0.57664,
    "c": 0.2178,
    "h": 329.3
  },
  "luminance": 0.16455
}

Semantic roles & 50–950 ramp

primary
#BA36B6
secondary
#84C886
accent
#DE4E49
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA36B6

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

Preview Lab → · Contrast checker → · Palette generator →

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