#BA36C2#BA36C2

#BA36C2 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.3% C 0.227 H 325.5°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#BA36C2
RGBrgb(186, 54, 194)
HSLhsl(297, 56%, 49%)
HSVhsv(297, 72%, 76%)
CMYKcmyk(4.1%, 72.2%, 0%, 23.9%)
CIE-LABlab(48.23, 68.46, -46.25)
CIE-LCHlch(48.23, 82.62, 325.96°)
OKLaboklab(58.35% 0.1872 -0.1286)
OKLCHoklch(58.35% 0.227 325.5)
XYZxyz(31.3058, 16.9745, 52.6560)
Luminance0.1697 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA36C2 #3EC236
analogous
#7436C2 #BA36C2 #C23684
triadic
#BA36C2 #C2BA36 #36C2BA
tetradic
#BA36C2 #C27436 #3EC236 #3684C2
square
#BA36C2 #C27436 #3EC236 #3684C2
split-complementary
#BA36C2 #84C236 #36C274
monochromatic
#5E1B62 #8C2992 #BA36C2 #CD62D3 #DC92E1

Accessibility & contrast

On white

4.78
#BA36C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#BA36C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA36C2
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA36C2#FFFFFF#000000##FFFFFF
##BA36C21.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A68C6
Deuteranopia (green-blind)
#5478BF
Tritanopia (blue-blind)
#BE4E79
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba36c2;
/* rgb */ color: rgb(186, 54, 194);
/* oklch */ color: oklch(58.3% 0.227 325.5);
Tailwind
colors: {
  custom: {
    50: '#d37ad5',
    500: '#ba36c2',
    950: '#000000',
  },
}
SCSS
$custom: #ba36c2;
$custom-light: #d37ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba36c2",
  "rgb": {
    "r": 186,
    "g": 54,
    "b": 194
  },
  "hsl": {
    "h": 296.571,
    "s": 56.452,
    "l": 48.627
  },
  "oklch": {
    "l": 0.58349,
    "c": 0.22711,
    "h": 325.5
  },
  "luminance": 0.16972
}

Semantic roles & 50–950 ramp

primary
#BA36C2
secondary
#8CCC88
accent
#E04851
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BA36C2

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

Preview Lab → · Contrast checker → · Palette generator →

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