#BA36B4#BA36B4

#BA36B4 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.6% C 0.216 H 329.9°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#BA36B4
RGBrgb(186, 54, 180)
HSLhsl(303, 55%, 47%)
HSVhsv(303, 71%, 73%)
CMYKcmyk(0%, 71%, 3.2%, 27.1%)
CIE-LABlab(47.46, 66.15, -39.29)
CIE-LCHlch(47.46, 76.94, 329.29°)
OKLaboklab(57.55% 0.1871 -0.1084)
OKLCHoklch(57.55% 0.216 329.9)
XYZxyz(29.8069, 16.3750, 44.7620)
Luminance0.1637 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA36B4 #36BA3C
analogous
#7E36BA #BA36B4 #BA3672
triadic
#BA36B4 #B4BA36 #36B4BA
tetradic
#BA36B4 #BA7E36 #36BA3C #3672BA
square
#BA36B4 #BA7E36 #36BA3C #3672BA
split-complementary
#BA36B4 #72BA36 #36BA7E
monochromatic
#5B1A58 #8B2886 #BA36B4 #D05DCB #DE8DDA

Accessibility & contrast

On white

4.91
#BA36B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#BA36B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA36B4
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA36B4#FFFFFF#000000##FFFFFF
##BA36B41.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2765B8
Deuteranopia (green-blind)
#5C77B1
Tritanopia (blue-blind)
#C14771
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba36b4;
/* rgb */ color: rgb(186, 54, 180);
/* oklch */ color: oklch(57.6% 0.216 329.9);
Tailwind
colors: {
  custom: {
    50: '#d279cb',
    500: '#ba36b4',
    950: '#000000',
  },
}
SCSS
$custom: #ba36b4;
$custom-light: #d279cb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba36b4",
  "rgb": {
    "r": 186,
    "g": 54,
    "b": 180
  },
  "hsl": {
    "h": 302.727,
    "s": 55,
    "l": 47.059
  },
  "oklch": {
    "l": 0.57554,
    "c": 0.21627,
    "h": 329.9
  },
  "luminance": 0.16373
}

Semantic roles & 50–950 ramp

primary
#BA36B4
secondary
#84C887
accent
#DE5049
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA36B4

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

Preview Lab → · Contrast checker → · Palette generator →

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