#BA29A7#BA29A7

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

Color values

HEX#BA29A7
RGBrgb(186, 41, 167)
HSLhsl(308, 64%, 45%)
HSVhsv(308, 78%, 73%)
CMYKcmyk(0%, 78%, 10.2%, 27.1%)
CIE-LABlab(45.38, 68.18, -34.90)
CIE-LCHlch(45.38, 76.59, 332.89°)
OKLaboklab(55.84% 0.1983 -0.0956)
OKLCHoklch(55.84% 0.22 334.2)
XYZxyz(28.0180, 14.8175, 37.9362)
Luminance0.1482 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA29A7 #29BA3C
analogous
#8529BA #BA29A7 #BA295F
triadic
#BA29A7 #A7BA29 #29A7BA
tetradic
#BA29A7 #BA8529 #29BA3C #295FBA
square
#BA29A7 #BA8529 #29BA3C #295FBA
split-complementary
#BA29A7 #5FBA29 #29BA85
monochromatic
#56134D #881E7A #BA29A7 #D749C4 #E27BD5

Accessibility & contrast

On white

5.30
#BA29A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA29A7
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA29A7#FFFFFF#000000##FFFFFF
##BA29A71.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265EAA
Deuteranopia (green-blind)
#5E73A4
Tritanopia (blue-blind)
#C33867
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba29a7;
/* rgb */ color: rgb(186, 41, 167);
/* oklch */ color: oklch(55.8% 0.220 334.2);
Tailwind
colors: {
  custom: {
    50: '#d374c1',
    500: '#ba29a7',
    950: '#000000',
  },
}
SCSS
$custom: #ba29a7;
$custom-light: #d374c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba29a7",
  "rgb": {
    "r": 186,
    "g": 41,
    "b": 167
  },
  "hsl": {
    "h": 307.862,
    "s": 63.877,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55844,
    "c": 0.22015,
    "h": 334.2
  },
  "luminance": 0.14815
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA29A7

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

Preview Lab → · Contrast checker → · Palette generator →

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