#BA56BC#BA56BC

#BA56BC is a mid, vivid purple. Relative luminance 0.207; OKLCH L 61.5% C 0.180 H 326.7°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#BA56BC
RGBrgb(186, 86, 188)
HSLhsl(299, 43%, 54%)
HSVhsv(299, 54%, 74%)
CMYKcmyk(1.1%, 54.3%, 0%, 26.3%)
CIE-LABlab(52.65, 54.28, -35.78)
CIE-LCHlch(52.65, 65.02, 326.61°)
OKLaboklab(61.45% 0.1502 -0.0985)
OKLCHoklch(61.45% 0.18 326.7)
XYZxyz(32.6540, 20.7274, 49.8480)
Luminance0.2073 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56BC #58BC56
analogous
#8756BC #BA56BC #BC568B
triadic
#BA56BC #BCBA56 #56BCBA
tetradic
#BA56BC #BC8756 #58BC56 #568BBC
square
#BA56BC #BC8756 #58BC56 #568BBC
split-complementary
#BA56BC #8BBC56 #56BC87
monochromatic
#6B2B6D #973C98 #BA56BC #CC82CD #DEAEDF

Accessibility & contrast

On white

4.08
#BA56BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#BA56BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56BC
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56BC#FFFFFF#000000##000000
##BA56BC1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B75BF
Deuteranopia (green-blind)
#6B82B9
Tritanopia (blue-blind)
#BF6281
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba56bc;
/* rgb */ color: rgb(186, 86, 188);
/* oklch */ color: oklch(61.5% 0.180 326.7);
Tailwind
colors: {
  custom: {
    50: '#d18ad0',
    500: '#ba56bc',
    950: '#000000',
  },
}
SCSS
$custom: #ba56bc;
$custom-light: #d18ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56bc",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 188
  },
  "hsl": {
    "h": 298.824,
    "s": 43.22,
    "l": 53.725
  },
  "oklch": {
    "l": 0.61453,
    "c": 0.17966,
    "h": 326.7
  },
  "luminance": 0.20726
}

Semantic roles & 50–950 ramp

primary
#BA56BC
secondary
#A2CDA1
accent
#D35557
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA56BC

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

Preview Lab → · Contrast checker → · Palette generator →

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