#BA56BF#BA56BF

#BA56BF is a mid, vivid purple. Relative luminance 0.209; OKLCH L 61.6% C 0.182 H 325.7°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#BA56BF
RGBrgb(186, 86, 191)
HSLhsl(297, 45%, 54%)
HSVhsv(297, 55%, 75%)
CMYKcmyk(2.6%, 55%, 0%, 25.1%)
CIE-LABlab(52.79, 54.83, -37.29)
CIE-LCHlch(52.79, 66.31, 325.78°)
OKLaboklab(61.61% 0.1506 -0.1029)
OKLCHoklch(61.61% 0.182 325.7)
XYZxyz(32.9807, 20.8581, 51.5689)
Luminance0.2086 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56BF #5BBF56
analogous
#8656BF #BA56BF #BF5690
triadic
#BA56BF #BFBA56 #56BFBA
tetradic
#BA56BF #BF8656 #5BBF56 #5690BF
square
#BA56BF #BF8656 #5BBF56 #5690BF
split-complementary
#BA56BF #90BF56 #56BF86
monochromatic
#6D2A70 #983B9D #BA56BF #CC82D0 #DEAFE1

Accessibility & contrast

On white

4.06
#BA56BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#BA56BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56BF
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56BF#FFFFFF#000000##000000
##BA56BF1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4976C2
Deuteranopia (green-blind)
#6982BC
Tritanopia (blue-blind)
#BE6382
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba56bf;
/* rgb */ color: rgb(186, 86, 191);
/* oklch */ color: oklch(61.6% 0.182 325.7);
Tailwind
colors: {
  custom: {
    50: '#d18ad2',
    500: '#ba56bf',
    950: '#000000',
  },
}
SCSS
$custom: #ba56bf;
$custom-light: #d18ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56bf",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 191
  },
  "hsl": {
    "h": 297.143,
    "s": 45.064,
    "l": 54.314
  },
  "oklch": {
    "l": 0.61605,
    "c": 0.18236,
    "h": 325.7
  },
  "luminance": 0.20856
}

Semantic roles & 50–950 ramp

primary
#BA56BF
secondary
#A4CFA2
accent
#D55359
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA56BF

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

Preview Lab → · Contrast checker → · Palette generator →

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