#BA56BE#BA56BE

#BA56BE is a mid, vivid purple. Relative luminance 0.208; OKLCH L 61.6% C 0.181 H 326.0°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#BA56BE
RGBrgb(186, 86, 190)
HSLhsl(298, 44%, 54%)
HSVhsv(298, 55%, 75%)
CMYKcmyk(2.1%, 54.7%, 0%, 25.5%)
CIE-LABlab(52.75, 54.65, -36.79)
CIE-LCHlch(52.75, 65.87, 326.05°)
OKLaboklab(61.55% 0.1505 -0.1014)
OKLCHoklch(61.55% 0.181 326)
XYZxyz(32.8711, 20.8142, 50.9914)
Luminance0.2081 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56BE #5ABE56
analogous
#8656BE #BA56BE #BE568E
triadic
#BA56BE #BEBA56 #56BEBA
tetradic
#BA56BE #BE8656 #5ABE56 #568EBE
square
#BA56BE #BE8656 #5ABE56 #568EBE
split-complementary
#BA56BE #8EBE56 #56BE86
monochromatic
#6C2B6F #973C9B #BA56BE #CC82CF #DEAEE0

Accessibility & contrast

On white

4.07
#BA56BE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#BA56BE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56BE
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56BE#FFFFFF#000000##000000
##BA56BE1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4976C1
Deuteranopia (green-blind)
#6A82BB
Tritanopia (blue-blind)
#BE6382
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba56be;
/* rgb */ color: rgb(186, 86, 190);
/* oklch */ color: oklch(61.6% 0.181 326.0);
Tailwind
colors: {
  custom: {
    50: '#d18ad2',
    500: '#ba56be',
    950: '#000000',
  },
}
SCSS
$custom: #ba56be;
$custom-light: #d18ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56be",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 190
  },
  "hsl": {
    "h": 297.692,
    "s": 44.444,
    "l": 54.118
  },
  "oklch": {
    "l": 0.61554,
    "c": 0.18146,
    "h": 326
  },
  "luminance": 0.20812
}

Semantic roles & 50–950 ramp

primary
#BA56BE
secondary
#A3CEA2
accent
#D45459
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA56BE

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

Preview Lab → · Contrast checker → · Palette generator →

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