#BA35B4#BA35B4

#BA35B4 is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.5% C 0.217 H 329.9°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#BA35B4
RGBrgb(186, 53, 180)
HSLhsl(303, 56%, 47%)
HSVhsv(303, 72%, 73%)
CMYKcmyk(0%, 71.5%, 3.2%, 27.1%)
CIE-LABlab(47.34, 66.49, -39.48)
CIE-LCHlch(47.34, 77.33, 329.30°)
OKLaboklab(57.47% 0.1881 -0.109)
OKLCHoklch(57.47% 0.217 329.9)
XYZxyz(29.7609, 16.2829, 44.7466)
Luminance0.1628 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA35B4 #35BA3B
analogous
#7E35BA #BA35B4 #BA3572
triadic
#BA35B4 #B4BA35 #35B4BA
tetradic
#BA35B4 #BA7E35 #35BA3B #3572BA
square
#BA35B4 #BA7E35 #35BA3B #3572BA
split-complementary
#BA35B4 #72BA35 #35BA7E
monochromatic
#5B1A58 #8A2786 #BA35B4 #D05CCB #DE8BDA

Accessibility & contrast

On white

4.93
#BA35B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#BA35B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA35B4
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA35B4#FFFFFF#000000##FFFFFF
##BA35B41.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2565B8
Deuteranopia (green-blind)
#5C77B1
Tritanopia (blue-blind)
#C14671
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba35b4;
/* rgb */ color: rgb(186, 53, 180);
/* oklch */ color: oklch(57.5% 0.217 329.9);
Tailwind
colors: {
  custom: {
    50: '#d279cb',
    500: '#ba35b4',
    950: '#000000',
  },
}
SCSS
$custom: #ba35b4;
$custom-light: #d279cb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba35b4",
  "rgb": {
    "r": 186,
    "g": 53,
    "b": 180
  },
  "hsl": {
    "h": 302.707,
    "s": 55.649,
    "l": 46.863
  },
  "oklch": {
    "l": 0.57468,
    "c": 0.21738,
    "h": 329.9
  },
  "luminance": 0.16281
}

Semantic roles & 50–950 ramp

primary
#BA35B4
secondary
#82C886
accent
#DF5049
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA35B4

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

Preview Lab → · Contrast checker → · Palette generator →

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