#BA3AAB#BA3AAB

#BA3AAB is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.4% C 0.205 H 333.0°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#BA3AAB
RGBrgb(186, 58, 171)
HSLhsl(307, 52%, 48%)
HSVhsv(307, 69%, 73%)
CMYKcmyk(0%, 68.8%, 8.1%, 27.1%)
CIE-LABlab(47.51, 63.32, -33.93)
CIE-LCHlch(47.51, 71.84, 331.81°)
OKLaboklab(57.44% 0.1825 -0.093)
OKLCHoklch(57.44% 0.205 333)
XYZxyz(29.1136, 16.4078, 40.1539)
Luminance0.1641 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3AAB #3ABA49
analogous
#893ABA #BA3AAB #BA3A6B
triadic
#BA3AAB #ABBA3A #3AABBA
tetradic
#BA3AAB #BA893A #3ABA49 #3A6BBA
square
#BA3AAB #BA893A #3ABA49 #3A6BBA
split-complementary
#BA3AAB #6BBA3A #3ABA89
monochromatic
#5D1D55 #8B2B80 #BA3AAB #CE63C2 #DD92D4

Accessibility & contrast

On white

4.91
#BA3AAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#BA3AAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3AAB
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3AAB#FFFFFF#000000##FFFFFF
##BA3AAB1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3565AE
Deuteranopia (green-blind)
#6377A8
Tritanopia (blue-blind)
#C2466E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba3aab;
/* rgb */ color: rgb(186, 58, 171);
/* oklch */ color: oklch(57.4% 0.205 333.0);
Tailwind
colors: {
  custom: {
    50: '#d27bc4',
    500: '#ba3aab',
    950: '#000000',
  },
}
SCSS
$custom: #ba3aab;
$custom-light: #d27bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3aab",
  "rgb": {
    "r": 186,
    "g": 58,
    "b": 171
  },
  "hsl": {
    "h": 307.031,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.57436,
    "c": 0.20483,
    "h": 333
  },
  "luminance": 0.16405
}

Semantic roles & 50–950 ramp

primary
#BA3AAB
secondary
#88C88F
accent
#DC5D4C
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA3AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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