#BA35B1#BA35B1

#BA35B1 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.3% C 0.215 H 330.9°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#BA35B1
RGBrgb(186, 53, 177)
HSLhsl(304, 56%, 47%)
HSVhsv(304, 72%, 73%)
CMYKcmyk(0%, 71.5%, 4.8%, 27.1%)
CIE-LABlab(47.19, 66.02, -37.97)
CIE-LCHlch(47.19, 76.16, 330.10°)
OKLaboklab(57.3% 0.188 -0.1046)
OKLCHoklch(57.3% 0.215 330.9)
XYZxyz(29.4586, 16.1619, 43.1545)
Luminance0.1616 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA35B1 #35BA3E
analogous
#8135BA #BA35B1 #BA356F
triadic
#BA35B1 #B1BA35 #35B1BA
tetradic
#BA35B1 #BA8135 #35BA3E #356FBA
square
#BA35B1 #BA8135 #35BA3E #356FBA
split-complementary
#BA35B1 #6FBA35 #35BA81
monochromatic
#5B1A56 #8A2784 #BA35B1 #D05CC9 #DE8BD8

Accessibility & contrast

On white

4.96
#BA35B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#BA35B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA35B1
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA35B1#FFFFFF#000000##FFFFFF
##BA35B11.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2964B4
Deuteranopia (green-blind)
#5E76AE
Tritanopia (blue-blind)
#C14570
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba35b1;
/* rgb */ color: rgb(186, 53, 177);
/* oklch */ color: oklch(57.3% 0.215 330.9);
Tailwind
colors: {
  custom: {
    50: '#d279c9',
    500: '#ba35b1',
    950: '#000000',
  },
}
SCSS
$custom: #ba35b1;
$custom-light: #d279c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba35b1",
  "rgb": {
    "r": 186,
    "g": 53,
    "b": 177
  },
  "hsl": {
    "h": 304.06,
    "s": 55.649,
    "l": 46.863
  },
  "oklch": {
    "l": 0.57304,
    "c": 0.21513,
    "h": 330.9
  },
  "luminance": 0.1616
}

Semantic roles & 50–950 ramp

primary
#BA35B1
secondary
#82C887
accent
#DF5349
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA35B1

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

Preview Lab → · Contrast checker → · Palette generator →

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