#BA29B2#BA29B2

#BA29B2 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.4% C 0.228 H 330.6°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#BA29B2
RGBrgb(186, 41, 178)
HSLhsl(303, 64%, 45%)
HSVhsv(303, 78%, 73%)
CMYKcmyk(0%, 78%, 4.3%, 27.1%)
CIE-LABlab(45.96, 69.83, -40.49)
CIE-LCHlch(45.96, 80.72, 329.89°)
OKLaboklab(56.45% 0.1986 -0.1118)
OKLCHoklch(56.45% 0.228 330.6)
XYZxyz(29.0785, 15.2417, 43.5213)
Luminance0.1524 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA29B2 #29BA31
analogous
#7929BA #BA29B2 #BA296A
triadic
#BA29B2 #B2BA29 #29B2BA
tetradic
#BA29B2 #BA7929 #29BA31 #296ABA
square
#BA29B2 #BA7929 #29BA31 #296ABA
split-complementary
#BA29B2 #6ABA29 #29BA79
monochromatic
#561352 #881E82 #BA29B2 #D749CF #E27BDC

Accessibility & contrast

On white

5.19
#BA29B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#BA29B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA29B2
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA29B2#FFFFFF#000000##FFFFFF
##BA29B21.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1460B6
Deuteranopia (green-blind)
#5874AF
Tritanopia (blue-blind)
#C13E6D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba29b2;
/* rgb */ color: rgb(186, 41, 178);
/* oklch */ color: oklch(56.4% 0.228 330.6);
Tailwind
colors: {
  custom: {
    50: '#d374c9',
    500: '#ba29b2',
    950: '#000000',
  },
}
SCSS
$custom: #ba29b2;
$custom-light: #d374c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba29b2",
  "rgb": {
    "r": 186,
    "g": 41,
    "b": 178
  },
  "hsl": {
    "h": 303.31,
    "s": 63.877,
    "l": 44.51
  },
  "oklch": {
    "l": 0.56446,
    "c": 0.22787,
    "h": 330.6
  },
  "luminance": 0.15239
}

Semantic roles & 50–950 ramp

primary
#BA29B2
secondary
#75CA79
accent
#E74A41
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BA29B2

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

Preview Lab → · Contrast checker → · Palette generator →

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