#BA56B2#BA56B2

#BA56B2 is a mid, vivid purple. Relative luminance 0.203; OKLCH L 61.0% C 0.171 H 330.6°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#BA56B2
RGBrgb(186, 86, 178)
HSLhsl(305, 42%, 53%)
HSVhsv(305, 54%, 73%)
CMYKcmyk(0%, 53.8%, 4.3%, 27.1%)
CIE-LABlab(52.19, 52.52, -30.71)
CIE-LCHlch(52.19, 60.84, 329.68°)
OKLaboklab(60.96% 0.1488 -0.084)
OKLCHoklch(60.96% 0.171 330.6)
XYZxyz(31.6131, 20.3111, 44.3662)
Luminance0.2031 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56B2 #56BA5E
analogous
#9056BA #BA56B2 #BA5680
triadic
#BA56B2 #B2BA56 #56B2BA
tetradic
#BA56B2 #BA9056 #56BA5E #5680BA
square
#BA56B2 #BA9056 #56BA5E #5680BA
split-complementary
#BA56B2 #80BA56 #56BA90
monochromatic
#6A2B65 #963D8F #BA56B2 #CC81C6 #DDADDA

Accessibility & contrast

On white

4.15
#BA56B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#BA56B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56B2
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56B2#FFFFFF#000000##000000
##BA56B21.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5174B5
Deuteranopia (green-blind)
#6F81AF
Tritanopia (blue-blind)
#C05F7C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba56b2;
/* rgb */ color: rgb(186, 86, 178);
/* oklch */ color: oklch(61.0% 0.171 330.6);
Tailwind
colors: {
  custom: {
    50: '#d18ac9',
    500: '#ba56b2',
    950: '#000000',
  },
}
SCSS
$custom: #ba56b2;
$custom-light: #d18ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56b2",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 178
  },
  "hsl": {
    "h": 304.8,
    "s": 42.017,
    "l": 53.333
  },
  "oklch": {
    "l": 0.60961,
    "c": 0.17088,
    "h": 330.6
  },
  "luminance": 0.20309
}

Semantic roles & 50–950 ramp

primary
#BA56B2
secondary
#A0CBA4
accent
#D26056
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C13
muted
#837D82

Preview Lab

Preview with #BA56B2

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

Preview Lab → · Contrast checker → · Palette generator →

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