#BA36A6#BA36A6

#BA36A6 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 56.8% C 0.206 H 334.8°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#BA36A6
RGBrgb(186, 54, 166)
HSLhsl(309, 55%, 47%)
HSVhsv(309, 71%, 73%)
CMYKcmyk(0%, 71%, 10.8%, 27.1%)
CIE-LABlab(46.75, 63.98, -32.15)
CIE-LCHlch(46.75, 71.60, 333.32°)
OKLaboklab(56.81% 0.1863 -0.0878)
OKLCHoklch(56.81% 0.206 334.8)
XYZxyz(28.4521, 15.8331, 37.6266)
Luminance0.1583 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA36A6 #36BA4A
analogous
#8C36BA #BA36A6 #BA3664
triadic
#BA36A6 #A6BA36 #36A6BA
tetradic
#BA36A6 #BA8C36 #36BA4A #3664BA
square
#BA36A6 #BA8C36 #36BA4A #3664BA
split-complementary
#BA36A6 #64BA36 #36BA8C
monochromatic
#5B1A51 #8B287C #BA36A6 #D05DBF #DE8DD1

Accessibility & contrast

On white

5.04
#BA36A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#BA36A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA36A6
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA36A6#FFFFFF#000000##FFFFFF
##BA36A61.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3562A9
Deuteranopia (green-blind)
#6376A3
Tritanopia (blue-blind)
#C3416A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba36a6;
/* rgb */ color: rgb(186, 54, 166);
/* oklch */ color: oklch(56.8% 0.206 334.8);
Tailwind
colors: {
  custom: {
    50: '#d279c1',
    500: '#ba36a6',
    950: '#000000',
  },
}
SCSS
$custom: #ba36a6;
$custom-light: #d279c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba36a6",
  "rgb": {
    "r": 186,
    "g": 54,
    "b": 166
  },
  "hsl": {
    "h": 309.091,
    "s": 55,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56814,
    "c": 0.20593,
    "h": 334.8
  },
  "luminance": 0.15831
}

Semantic roles & 50–950 ramp

primary
#BA36A6
secondary
#84C88E
accent
#DE6049
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA36A6

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

Preview Lab → · Contrast checker → · Palette generator →

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