#BA35A7#BA35A7

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

Color values

HEX#BA35A7
RGBrgb(186, 53, 167)
HSLhsl(309, 56%, 47%)
HSVhsv(309, 72%, 73%)
CMYKcmyk(0%, 71.5%, 10.2%, 27.1%)
CIE-LABlab(46.68, 64.47, -32.86)
CIE-LCHlch(46.68, 72.36, 333.00°)
OKLaboklab(56.78% 0.1874 -0.0899)
OKLCHoklch(56.78% 0.208 334.4)
XYZxyz(28.4981, 15.7778, 38.0962)
Luminance0.1578 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA35A7 #35BA48
analogous
#8A35BA #BA35A7 #BA3565
triadic
#BA35A7 #A7BA35 #35A7BA
tetradic
#BA35A7 #BA8A35 #35BA48 #3565BA
square
#BA35A7 #BA8A35 #35BA48 #3565BA
split-complementary
#BA35A7 #65BA35 #35BA8A
monochromatic
#5B1A51 #8A277C #BA35A7 #D05CC0 #DE8BD2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA35A7#FFFFFF#000000##FFFFFF
##BA35A71.005.054.155.05
#FFFFFF5.051.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3362AA
Deuteranopia (green-blind)
#6276A4
Tritanopia (blue-blind)
#C3406A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba35a7;
/* rgb */ color: rgb(186, 53, 167);
/* oklch */ color: oklch(56.8% 0.208 334.4);
Tailwind
colors: {
  custom: {
    50: '#d279c1',
    500: '#ba35a7',
    950: '#000000',
  },
}
SCSS
$custom: #ba35a7;
$custom-light: #d279c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba35a7",
  "rgb": {
    "r": 186,
    "g": 53,
    "b": 167
  },
  "hsl": {
    "h": 308.571,
    "s": 55.649,
    "l": 46.863
  },
  "oklch": {
    "l": 0.56777,
    "c": 0.20781,
    "h": 334.4
  },
  "luminance": 0.15775
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA35A7

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

Preview Lab → · Contrast checker → · Palette generator →

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