#BA36A8#BA36A8

#BA36A8 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 56.9% C 0.207 H 334.0°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#BA36A8
RGBrgb(186, 54, 168)
HSLhsl(308, 55%, 47%)
HSVhsv(308, 71%, 73%)
CMYKcmyk(0%, 71%, 9.7%, 27.1%)
CIE-LABlab(46.85, 64.28, -33.18)
CIE-LCHlch(46.85, 72.34, 332.70°)
OKLaboklab(56.92% 0.1864 -0.0908)
OKLCHoklch(56.92% 0.207 334)
XYZxyz(28.6370, 15.9070, 38.6003)
Luminance0.1590 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA36A8 #36BA48
analogous
#8A36BA #BA36A8 #BA3666
triadic
#BA36A8 #A8BA36 #36A8BA
tetradic
#BA36A8 #BA8A36 #36BA48 #3666BA
square
#BA36A8 #BA8A36 #36BA48 #3666BA
split-complementary
#BA36A8 #66BA36 #36BA8A
monochromatic
#5B1A52 #8B287D #BA36A8 #D05DC0 #DE8DD3

Accessibility & contrast

On white

5.02
#BA36A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#BA36A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA36A8
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA36A8#FFFFFF#000000##FFFFFF
##BA36A81.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3363AB
Deuteranopia (green-blind)
#6276A5
Tritanopia (blue-blind)
#C3416B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba36a8;
/* rgb */ color: rgb(186, 54, 168);
/* oklch */ color: oklch(56.9% 0.207 334.0);
Tailwind
colors: {
  custom: {
    50: '#d279c2',
    500: '#ba36a8',
    950: '#000000',
  },
}
SCSS
$custom: #ba36a8;
$custom-light: #d279c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba36a8",
  "rgb": {
    "r": 186,
    "g": 54,
    "b": 168
  },
  "hsl": {
    "h": 308.182,
    "s": 55,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56916,
    "c": 0.20738,
    "h": 334
  },
  "luminance": 0.15905
}

Semantic roles & 50–950 ramp

primary
#BA36A8
secondary
#84C88D
accent
#DE5E49
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA36A8

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

Preview Lab → · Contrast checker → · Palette generator →

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