#BA35A8#BA35A8

#BA35A8 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 56.8% C 0.209 H 334.0°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#BA35A8
RGBrgb(186, 53, 168)
HSLhsl(308, 56%, 47%)
HSVhsv(308, 72%, 73%)
CMYKcmyk(0%, 71.5%, 9.7%, 27.1%)
CIE-LABlab(46.73, 64.63, -33.37)
CIE-LCHlch(46.73, 72.73, 332.69°)
OKLaboklab(56.83% 0.1875 -0.0913)
OKLCHoklch(56.83% 0.209 334)
XYZxyz(28.5909, 15.8149, 38.5850)
Luminance0.1581 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA35A8 #35BA47
analogous
#8A35BA #BA35A8 #BA3566
triadic
#BA35A8 #A8BA35 #35A8BA
tetradic
#BA35A8 #BA8A35 #35BA47 #3566BA
square
#BA35A8 #BA8A35 #35BA47 #3566BA
split-complementary
#BA35A8 #66BA35 #35BA8A
monochromatic
#5B1A52 #8A277D #BA35A8 #D05CC1 #DE8BD3

Accessibility & contrast

On white

5.05
#BA35A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#BA35A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA35A8
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA35A8#FFFFFF#000000##FFFFFF
##BA35A81.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba35a8;
/* rgb */ color: rgb(186, 53, 168);
/* oklch */ color: oklch(56.8% 0.209 334.0);
Tailwind
colors: {
  custom: {
    50: '#d279c2',
    500: '#ba35a8',
    950: '#000000',
  },
}
SCSS
$custom: #ba35a8;
$custom-light: #d279c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba35a8",
  "rgb": {
    "r": 186,
    "g": 53,
    "b": 168
  },
  "hsl": {
    "h": 308.12,
    "s": 55.649,
    "l": 46.863
  },
  "oklch": {
    "l": 0.56829,
    "c": 0.20852,
    "h": 334
  },
  "luminance": 0.15812
}

Semantic roles & 50–950 ramp

primary
#BA35A8
secondary
#82C88C
accent
#DF5D49
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA35A8

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

Preview Lab → · Contrast checker → · Palette generator →

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