#BA35B8#BA35B8

#BA35B8 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.7% C 0.220 H 328.6°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#BA35B8
RGBrgb(186, 53, 184)
HSLhsl(301, 56%, 47%)
HSVhsv(301, 72%, 73%)
CMYKcmyk(0%, 71.5%, 1.1%, 27.1%)
CIE-LABlab(47.56, 67.14, -41.49)
CIE-LCHlch(47.56, 78.92, 328.29°)
OKLaboklab(57.69% 0.1882 -0.1148)
OKLCHoklch(57.69% 0.22 328.6)
XYZxyz(30.1742, 16.4482, 46.9237)
Luminance0.1645 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA35B8 #35BA37
analogous
#7A35BA #BA35B8 #BA3576
triadic
#BA35B8 #B8BA35 #35B8BA
tetradic
#BA35B8 #BA7A35 #35BA37 #3576BA
square
#BA35B8 #BA7A35 #35BA37 #3576BA
split-complementary
#BA35B8 #76BA35 #35BA7A
monochromatic
#5B1A5A #8A2789 #BA35B8 #D05CCF #DE8BDD

Accessibility & contrast

On white

4.90
#BA35B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#BA35B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA35B8
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA35B8#FFFFFF#000000##FFFFFF
##BA35B81.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F66BC
Deuteranopia (green-blind)
#5A77B5
Tritanopia (blue-blind)
#C04873
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba35b8;
/* rgb */ color: rgb(186, 53, 184);
/* oklch */ color: oklch(57.7% 0.220 328.6);
Tailwind
colors: {
  custom: {
    50: '#d279ce',
    500: '#ba35b8',
    950: '#000000',
  },
}
SCSS
$custom: #ba35b8;
$custom-light: #d279ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ba35b8",
  "rgb": {
    "r": 186,
    "g": 53,
    "b": 184
  },
  "hsl": {
    "h": 300.902,
    "s": 55.649,
    "l": 46.863
  },
  "oklch": {
    "l": 0.57691,
    "c": 0.22042,
    "h": 328.6
  },
  "luminance": 0.16446
}

Semantic roles & 50–950 ramp

primary
#BA35B8
secondary
#82C884
accent
#DF4B49
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA35B8

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

Preview Lab → · Contrast checker → · Palette generator →

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