#BA56AA#BA56AA

#BA56AA is a mid, vivid purple. Relative luminance 0.200; OKLCH L 60.6% C 0.164 H 333.9°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#BA56AA
RGBrgb(186, 86, 170)
HSLhsl(310, 42%, 53%)
HSVhsv(310, 54%, 73%)
CMYKcmyk(0%, 53.8%, 8.6%, 27.1%)
CIE-LABlab(51.84, 51.16, -26.59)
CIE-LCHlch(51.84, 57.66, 332.54°)
OKLaboklab(60.59% 0.1474 -0.0722)
OKLCHoklch(60.59% 0.164 333.9)
XYZxyz(30.8332, 19.9991, 40.2586)
Luminance0.2000 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56AA #56BA66
analogous
#9856BA #BA56AA #BA5678
triadic
#BA56AA #AABA56 #56AABA
tetradic
#BA56AA #BA9856 #56BA66 #5678BA
square
#BA56AA #BA9856 #56BA66 #5678BA
split-complementary
#BA56AA #78BA56 #56BA98
monochromatic
#6A2B60 #963D88 #BA56AA #CC81C0 #DDADD6

Accessibility & contrast

On white

4.20
#BA56AA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#BA56AA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56AA
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56AA#FFFFFF#000000##000000
##BA56AA1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5572AD
Deuteranopia (green-blind)
#7281A7
Tritanopia (blue-blind)
#C25C78
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba56aa;
/* rgb */ color: rgb(186, 86, 170);
/* oklch */ color: oklch(60.6% 0.164 333.9);
Tailwind
colors: {
  custom: {
    50: '#d18ac3',
    500: '#ba56aa',
    950: '#000000',
  },
}
SCSS
$custom: #ba56aa;
$custom-light: #d18ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56aa",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 170
  },
  "hsl": {
    "h": 309.6,
    "s": 42.017,
    "l": 53.333
  },
  "oklch": {
    "l": 0.60587,
    "c": 0.16418,
    "h": 333.9
  },
  "luminance": 0.19997
}

Semantic roles & 50–950 ramp

primary
#BA56AA
secondary
#A0CBA7
accent
#D26A56
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C12
muted
#837D81

Preview Lab

Preview with #BA56AA

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

Preview Lab → · Contrast checker → · Palette generator →

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