#BA29A6#BA29A6

#BA29A6 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.8% C 0.219 H 334.6°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#BA29A6
RGBrgb(186, 41, 166)
HSLhsl(308, 64%, 45%)
HSVhsv(308, 78%, 73%)
CMYKcmyk(0%, 78%, 10.8%, 27.1%)
CIE-LABlab(45.33, 68.04, -34.38)
CIE-LCHlch(45.33, 76.23, 333.19°)
OKLaboklab(55.79% 0.1982 -0.0942)
OKLCHoklch(55.79% 0.219 334.6)
XYZxyz(27.9259, 14.7807, 37.4512)
Luminance0.1478 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA29A6 #29BA3D
analogous
#8629BA #BA29A6 #BA295D
triadic
#BA29A6 #A6BA29 #29A6BA
tetradic
#BA29A6 #BA8629 #29BA3D #295DBA
square
#BA29A6 #BA8629 #29BA3D #295DBA
split-complementary
#BA29A6 #5DBA29 #29BA86
monochromatic
#56134C #881E79 #BA29A6 #D749C3 #E27BD4

Accessibility & contrast

On white

5.31
#BA29A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#BA29A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA29A6
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA29A6#FFFFFF#000000##FFFFFF
##BA29A61.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275EA9
Deuteranopia (green-blind)
#5E73A3
Tritanopia (blue-blind)
#C33766
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba29a6;
/* rgb */ color: rgb(186, 41, 166);
/* oklch */ color: oklch(55.8% 0.219 334.6);
Tailwind
colors: {
  custom: {
    50: '#d374c1',
    500: '#ba29a6',
    950: '#000000',
  },
}
SCSS
$custom: #ba29a6;
$custom-light: #d374c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba29a6",
  "rgb": {
    "r": 186,
    "g": 41,
    "b": 166
  },
  "hsl": {
    "h": 308.276,
    "s": 63.877,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55791,
    "c": 0.21947,
    "h": 334.6
  },
  "luminance": 0.14778
}

Semantic roles & 50–950 ramp

primary
#BA29A6
secondary
#75CA80
accent
#E75841
background
#FDF7FB
surface
#FBEEF7
border
#D4C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA29A6

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

Preview Lab → · Contrast checker → · Palette generator →

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