#BA36A7#BA36A7

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

Color values

HEX#BA36A7
RGBrgb(186, 54, 167)
HSLhsl(309, 55%, 47%)
HSVhsv(309, 71%, 73%)
CMYKcmyk(0%, 71%, 10.2%, 27.1%)
CIE-LABlab(46.80, 64.13, -32.67)
CIE-LCHlch(46.80, 71.97, 333.01°)
OKLaboklab(56.87% 0.1863 -0.0893)
OKLCHoklch(56.87% 0.207 334.4)
XYZxyz(28.5442, 15.8699, 38.1116)
Luminance0.1587 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA36A7 #36BA49
analogous
#8B36BA #BA36A7 #BA3665
triadic
#BA36A7 #A7BA36 #36A7BA
tetradic
#BA36A7 #BA8B36 #36BA49 #3665BA
square
#BA36A7 #BA8B36 #36BA49 #3665BA
split-complementary
#BA36A7 #65BA36 #36BA8B
monochromatic
#5B1A52 #8B287C #BA36A7 #D05DBF #DE8DD2

Accessibility & contrast

On white

5.03
#BA36A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA36A7
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA36A7#FFFFFF#000000##FFFFFF
##BA36A71.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3463AA
Deuteranopia (green-blind)
#6376A4
Tritanopia (blue-blind)
#C3416A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba36a7;
/* rgb */ color: rgb(186, 54, 167);
/* oklch */ color: oklch(56.9% 0.207 334.4);
Tailwind
colors: {
  custom: {
    50: '#d279c1',
    500: '#ba36a7',
    950: '#000000',
  },
}
SCSS
$custom: #ba36a7;
$custom-light: #d279c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba36a7",
  "rgb": {
    "r": 186,
    "g": 54,
    "b": 167
  },
  "hsl": {
    "h": 308.636,
    "s": 55,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56865,
    "c": 0.20665,
    "h": 334.4
  },
  "luminance": 0.15867
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA36A7

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

Preview Lab → · Contrast checker → · Palette generator →

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