#BA56BB#BA56BB

#BA56BB is a mid, vivid purple. Relative luminance 0.207; OKLCH L 61.4% C 0.179 H 327.1°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#BA56BB
RGBrgb(186, 86, 187)
HSLhsl(299, 43%, 54%)
HSVhsv(299, 54%, 73%)
CMYKcmyk(0.5%, 54%, 0%, 26.7%)
CIE-LABlab(52.60, 54.10, -35.28)
CIE-LCHlch(52.60, 64.59, 326.89°)
OKLaboklab(61.4% 0.1501 -0.0971)
OKLCHoklch(61.4% 0.179 327.1)
XYZxyz(32.5466, 20.6844, 49.2823)
Luminance0.2068 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56BB #57BB56
analogous
#8756BB #BA56BB #BB5689
triadic
#BA56BB #BBBA56 #56BBBA
tetradic
#BA56BB #BB8756 #57BB56 #5689BB
square
#BA56BB #BB8756 #57BB56 #5689BB
split-complementary
#BA56BB #89BB56 #56BB87
monochromatic
#6B2B6B #963D97 #BA56BB #CC82CD #DEADDE

Accessibility & contrast

On white

4.09
#BA56BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#BA56BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56BB
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56BB#FFFFFF#000000##000000
##BA56BB1.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B75BE
Deuteranopia (green-blind)
#6B82B8
Tritanopia (blue-blind)
#BF6280
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba56bb;
/* rgb */ color: rgb(186, 86, 187);
/* oklch */ color: oklch(61.4% 0.179 327.1);
Tailwind
colors: {
  custom: {
    50: '#d18ad0',
    500: '#ba56bb',
    950: '#000000',
  },
}
SCSS
$custom: #ba56bb;
$custom-light: #d18ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56bb",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 187
  },
  "hsl": {
    "h": 299.406,
    "s": 42.616,
    "l": 53.529
  },
  "oklch": {
    "l": 0.61402,
    "c": 0.17876,
    "h": 327.1
  },
  "luminance": 0.20683
}

Semantic roles & 50–950 ramp

primary
#BA56BB
secondary
#A1CCA1
accent
#D25557
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA56BB

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

Preview Lab → · Contrast checker → · Palette generator →

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