#BA4BB7#BA4BB7

#BA4BB7 is a mid, vivid purple. Relative luminance 0.189; OKLCH L 59.8% C 0.192 H 328.7°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#BA4BB7
RGBrgb(186, 75, 183)
HSLhsl(302, 45%, 51%)
HSVhsv(302, 60%, 73%)
CMYKcmyk(0%, 59.7%, 1.6%, 27.1%)
CIE-LABlab(50.56, 58.43, -36.16)
CIE-LCHlch(50.56, 68.71, 328.25°)
OKLaboklab(59.85% 0.1639 -0.0995)
OKLCHoklch(59.85% 0.192 328.7)
XYZxyz(31.3127, 18.8922, 46.7879)
Luminance0.1889 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4BB7 #4BBA4E
analogous
#854BBA #BA4BB7 #BA4B7F
triadic
#BA4BB7 #B7BA4B #4BB7BA
tetradic
#BA4BB7 #BA854B #4BBA4E #4B7FBA
square
#BA4BB7 #BA854B #4BBA4E #4B7FBA
split-complementary
#BA4BB7 #7FBA4B #4BBA85
monochromatic
#642663 #90378E #BA4BB7 #CB77C9 #DCA3DA

Accessibility & contrast

On white

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

On black

4.78
#BA4BB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4BB7
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4BB7#FFFFFF#000000##000000
##BA4BB71.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#406FBA
Deuteranopia (green-blind)
#667EB4
Tritanopia (blue-blind)
#C0587A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba4bb7;
/* rgb */ color: rgb(186, 75, 183);
/* oklch */ color: oklch(59.8% 0.192 328.7);
Tailwind
colors: {
  custom: {
    50: '#d284cd',
    500: '#ba4bb7',
    950: '#000000',
  },
}
SCSS
$custom: #ba4bb7;
$custom-light: #d284cd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4bb7",
  "rgb": {
    "r": 186,
    "g": 75,
    "b": 183
  },
  "hsl": {
    "h": 301.622,
    "s": 44.578,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59846,
    "c": 0.19172,
    "h": 328.7
  },
  "luminance": 0.1889
}

Semantic roles & 50–950 ramp

primary
#BA4BB7
secondary
#98C999
accent
#D45754
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA4BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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