#BA3AAF#BA3AAF

#BA3AAF is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.6% C 0.208 H 331.6°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#BA3AAF
RGBrgb(186, 58, 175)
HSLhsl(305, 52%, 48%)
HSVhsv(305, 69%, 73%)
CMYKcmyk(0%, 68.8%, 5.9%, 27.1%)
CIE-LABlab(47.70, 63.95, -35.98)
CIE-LCHlch(47.70, 73.37, 330.64°)
OKLaboklab(57.64% 0.1828 -0.0989)
OKLCHoklch(57.64% 0.208 331.6)
XYZxyz(29.5006, 16.5627, 42.1923)
Luminance0.1656 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3AAF #3ABA45
analogous
#853ABA #BA3AAF #BA3A6F
triadic
#BA3AAF #AFBA3A #3AAFBA
tetradic
#BA3AAF #BA853A #3ABA45 #3A6FBA
square
#BA3AAF #BA853A #3ABA45 #3A6FBA
split-complementary
#BA3AAF #6FBA3A #3ABA85
monochromatic
#5D1D57 #8B2B83 #BA3AAF #CE63C5 #DD92D6

Accessibility & contrast

On white

4.87
#BA3AAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#BA3AAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3AAF
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3AAF#FFFFFF#000000##FFFFFF
##BA3AAF1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3266B2
Deuteranopia (green-blind)
#6178AC
Tritanopia (blue-blind)
#C24870
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba3aaf;
/* rgb */ color: rgb(186, 58, 175);
/* oklch */ color: oklch(57.6% 0.208 331.6);
Tailwind
colors: {
  custom: {
    50: '#d27bc7',
    500: '#ba3aaf',
    950: '#000000',
  },
}
SCSS
$custom: #ba3aaf;
$custom-light: #d27bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3aaf",
  "rgb": {
    "r": 186,
    "g": 58,
    "b": 175
  },
  "hsl": {
    "h": 305.156,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.57644,
    "c": 0.20783,
    "h": 331.6
  },
  "luminance": 0.1656
}

Semantic roles & 50–950 ramp

primary
#BA3AAF
secondary
#88C88D
accent
#DC584C
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA3AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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