#BA3AA8#BA3AA8

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

Color values

HEX#BA3AA8
RGBrgb(186, 58, 168)
HSLhsl(308, 52%, 48%)
HSVhsv(308, 69%, 73%)
CMYKcmyk(0%, 68.8%, 9.7%, 27.1%)
CIE-LABlab(47.36, 62.85, -32.39)
CIE-LCHlch(47.36, 70.71, 332.74°)
OKLaboklab(57.28% 0.1822 -0.0886)
OKLCHoklch(57.28% 0.203 334.1)
XYZxyz(28.8309, 16.2948, 38.6649)
Luminance0.1629 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3AA8 #3ABA4C
analogous
#8C3ABA #BA3AA8 #BA3A68
triadic
#BA3AA8 #A8BA3A #3AA8BA
tetradic
#BA3AA8 #BA8C3A #3ABA4C #3A68BA
square
#BA3AA8 #BA8C3A #3ABA4C #3A68BA
split-complementary
#BA3AA8 #68BA3A #3ABA8C
monochromatic
#5D1D54 #8B2B7E #BA3AA8 #CE63BF #DD92D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA3AA8#FFFFFF#000000##FFFFFF
##BA3AA81.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)
#3864AB
Deuteranopia (green-blind)
#6477A5
Tritanopia (blue-blind)
#C3456C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba3aa8;
/* rgb */ color: rgb(186, 58, 168);
/* oklch */ color: oklch(57.3% 0.203 334.1);
Tailwind
colors: {
  custom: {
    50: '#d27bc2',
    500: '#ba3aa8',
    950: '#000000',
  },
}
SCSS
$custom: #ba3aa8;
$custom-light: #d27bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3aa8",
  "rgb": {
    "r": 186,
    "g": 58,
    "b": 168
  },
  "hsl": {
    "h": 308.438,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.57283,
    "c": 0.20262,
    "h": 334.1
  },
  "luminance": 0.16292
}

Semantic roles & 50–950 ramp

primary
#BA3AA8
secondary
#88C891
accent
#DC604C
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA3AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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