#BA4BB6#BA4BB6

#BA4BB6 is a mid, vivid purple. Relative luminance 0.188; OKLCH L 59.8% C 0.191 H 329.1°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#BA4BB6
RGBrgb(186, 75, 182)
HSLhsl(302, 45%, 51%)
HSVhsv(302, 60%, 73%)
CMYKcmyk(0%, 59.7%, 2.2%, 27.1%)
CIE-LABlab(50.51, 58.26, -35.66)
CIE-LCHlch(50.51, 68.30, 328.53°)
OKLaboklab(59.79% 0.1638 -0.0981)
OKLCHoklch(59.79% 0.191 329.1)
XYZxyz(31.2090, 18.8507, 46.2417)
Luminance0.1885 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4BB6 #4BBA4F
analogous
#864BBA #BA4BB6 #BA4B7E
triadic
#BA4BB6 #B6BA4B #4BB6BA
tetradic
#BA4BB6 #BA864B #4BBA4F #4B7EBA
square
#BA4BB6 #BA864B #4BBA4F #4B7EBA
split-complementary
#BA4BB6 #7EBA4B #4BBA86
monochromatic
#642662 #90378D #BA4BB6 #CB77C8 #DCA3DA

Accessibility & contrast

On white

4.40
#BA4BB6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#BA4BB6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4BB6
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4BB6#FFFFFF#000000##000000
##BA4BB61.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#416FB9
Deuteranopia (green-blind)
#677EB3
Tritanopia (blue-blind)
#C0577A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba4bb6;
/* rgb */ color: rgb(186, 75, 182);
/* oklch */ color: oklch(59.8% 0.191 329.1);
Tailwind
colors: {
  custom: {
    50: '#d284cc',
    500: '#ba4bb6',
    950: '#000000',
  },
}
SCSS
$custom: #ba4bb6;
$custom-light: #d284cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4bb6",
  "rgb": {
    "r": 186,
    "g": 75,
    "b": 182
  },
  "hsl": {
    "h": 302.162,
    "s": 44.578,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59794,
    "c": 0.19088,
    "h": 329.1
  },
  "luminance": 0.18849
}

Semantic roles & 50–950 ramp

primary
#BA4BB6
secondary
#98C99A
accent
#D45854
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA4BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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