#BA35B2#BA35B2

#BA35B2 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.4% C 0.216 H 330.6°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#BA35B2
RGBrgb(186, 53, 178)
HSLhsl(304, 56%, 47%)
HSVhsv(304, 72%, 73%)
CMYKcmyk(0%, 71.5%, 4.3%, 27.1%)
CIE-LABlab(47.24, 66.18, -38.47)
CIE-LCHlch(47.24, 76.55, 329.83°)
OKLaboklab(57.36% 0.188 -0.106)
OKLCHoklch(57.36% 0.216 330.6)
XYZxyz(29.5586, 16.2020, 43.6813)
Luminance0.1620 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA35B2 #35BA3D
analogous
#8035BA #BA35B2 #BA3570
triadic
#BA35B2 #B2BA35 #35B2BA
tetradic
#BA35B2 #BA8035 #35BA3D #3570BA
square
#BA35B2 #BA8035 #35BA3D #3570BA
split-complementary
#BA35B2 #70BA35 #35BA80
monochromatic
#5B1A57 #8A2784 #BA35B2 #D05CC9 #DE8BD9

Accessibility & contrast

On white

4.95
#BA35B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#BA35B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA35B2
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA35B2#FFFFFF#000000##FFFFFF
##BA35B21.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2864B5
Deuteranopia (green-blind)
#5D76AF
Tritanopia (blue-blind)
#C14570
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba35b2;
/* rgb */ color: rgb(186, 53, 178);
/* oklch */ color: oklch(57.4% 0.216 330.6);
Tailwind
colors: {
  custom: {
    50: '#d279c9',
    500: '#ba35b2',
    950: '#000000',
  },
}
SCSS
$custom: #ba35b2;
$custom-light: #d279c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba35b2",
  "rgb": {
    "r": 186,
    "g": 53,
    "b": 178
  },
  "hsl": {
    "h": 303.609,
    "s": 55.649,
    "l": 46.863
  },
  "oklch": {
    "l": 0.57359,
    "c": 0.21588,
    "h": 330.6
  },
  "luminance": 0.162
}

Semantic roles & 50–950 ramp

primary
#BA35B2
secondary
#82C887
accent
#DF5249
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA35B2

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

Preview Lab → · Contrast checker → · Palette generator →

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