#BA35B6#BA35B6

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

Color values

HEX#BA35B6
RGBrgb(186, 53, 182)
HSLhsl(302, 56%, 47%)
HSVhsv(302, 72%, 73%)
CMYKcmyk(0%, 71.5%, 2.2%, 27.1%)
CIE-LABlab(47.45, 66.81, -40.49)
CIE-LCHlch(47.45, 78.12, 328.79°)
OKLaboklab(57.58% 0.1882 -0.1119)
OKLCHoklch(57.58% 0.219 329.3)
XYZxyz(29.9661, 16.3649, 45.8274)
Luminance0.1636 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA35B6 #35BA39
analogous
#7C35BA #BA35B6 #BA3573
triadic
#BA35B6 #B6BA35 #35B6BA
tetradic
#BA35B6 #BA7C35 #35BA39 #3573BA
square
#BA35B6 #BA7C35 #35BA39 #3573BA
split-complementary
#BA35B6 #73BA35 #35BA7C
monochromatic
#5B1A59 #8A2787 #BA35B6 #D05CCD #DE8BDC

Accessibility & contrast

On white

4.92
#BA35B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA35B6
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA35B6#FFFFFF#000000##FFFFFF
##BA35B61.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2365BA
Deuteranopia (green-blind)
#5B77B3
Tritanopia (blue-blind)
#C04772
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba35b6;
/* rgb */ color: rgb(186, 53, 182);
/* oklch */ color: oklch(57.6% 0.219 329.3);
Tailwind
colors: {
  custom: {
    50: '#d279cc',
    500: '#ba35b6',
    950: '#000000',
  },
}
SCSS
$custom: #ba35b6;
$custom-light: #d279cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba35b6",
  "rgb": {
    "r": 186,
    "g": 53,
    "b": 182
  },
  "hsl": {
    "h": 301.805,
    "s": 55.649,
    "l": 46.863
  },
  "oklch": {
    "l": 0.57579,
    "c": 0.2189,
    "h": 329.3
  },
  "luminance": 0.16363
}

Semantic roles & 50–950 ramp

primary
#BA35B6
secondary
#82C885
accent
#DF4D49
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA35B6

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

Preview Lab → · Contrast checker → · Palette generator →

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