#BA35A6#BA35A6

#BA35A6 is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.7% C 0.207 H 334.7°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#BA35A6
RGBrgb(186, 53, 166)
HSLhsl(309, 56%, 47%)
HSVhsv(309, 72%, 73%)
CMYKcmyk(0%, 71.5%, 10.8%, 27.1%)
CIE-LABlab(46.63, 64.32, -32.34)
CIE-LCHlch(46.63, 72.00, 333.31°)
OKLaboklab(56.73% 0.1873 -0.0884)
OKLCHoklch(56.73% 0.207 334.7)
XYZxyz(28.4060, 15.7409, 37.6112)
Luminance0.1574 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA35A6 #35BA49
analogous
#8C35BA #BA35A6 #BA3563
triadic
#BA35A6 #A6BA35 #35A6BA
tetradic
#BA35A6 #BA8C35 #35BA49 #3563BA
square
#BA35A6 #BA8C35 #35BA49 #3563BA
split-complementary
#BA35A6 #63BA35 #35BA8C
monochromatic
#5B1A51 #8A277B #BA35A6 #D05CBF #DE8BD2

Accessibility & contrast

On white

5.06
#BA35A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#BA35A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA35A6
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA35A6#FFFFFF#000000##FFFFFF
##BA35A61.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3462A9
Deuteranopia (green-blind)
#6376A3
Tritanopia (blue-blind)
#C3406A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba35a6;
/* rgb */ color: rgb(186, 53, 166);
/* oklch */ color: oklch(56.7% 0.207 334.7);
Tailwind
colors: {
  custom: {
    50: '#d279c1',
    500: '#ba35a6',
    950: '#000000',
  },
}
SCSS
$custom: #ba35a6;
$custom-light: #d279c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba35a6",
  "rgb": {
    "r": 186,
    "g": 53,
    "b": 166
  },
  "hsl": {
    "h": 309.023,
    "s": 55.649,
    "l": 46.863
  },
  "oklch": {
    "l": 0.56726,
    "c": 0.20709,
    "h": 334.7
  },
  "luminance": 0.15738
}

Semantic roles & 50–950 ramp

primary
#BA35A6
secondary
#82C88D
accent
#DF5F49
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA35A6

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

Preview Lab → · Contrast checker → · Palette generator →

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