#BA56AE#BA56AE

#BA56AE is a mid, vivid purple. Relative luminance 0.202; OKLCH L 60.8% C 0.167 H 332.2°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#BA56AE
RGBrgb(186, 86, 174)
HSLhsl(307, 42%, 53%)
HSVhsv(307, 54%, 73%)
CMYKcmyk(0%, 53.8%, 6.5%, 27.1%)
CIE-LABlab(52.01, 51.83, -28.66)
CIE-LCHlch(52.01, 59.23, 331.06°)
OKLaboklab(60.77% 0.1482 -0.0781)
OKLCHoklch(60.77% 0.167 332.2)
XYZxyz(31.2174, 20.1527, 42.2818)
Luminance0.2015 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56AE #56BA62
analogous
#9456BA #BA56AE #BA567C
triadic
#BA56AE #AEBA56 #56AEBA
tetradic
#BA56AE #BA9456 #56BA62 #567CBA
square
#BA56AE #BA9456 #56BA62 #567CBA
split-complementary
#BA56AE #7CBA56 #56BA94
monochromatic
#6A2B63 #963D8B #BA56AE #CC81C3 #DDADD8

Accessibility & contrast

On white

4.17
#BA56AE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#BA56AE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56AE
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56AE#FFFFFF#000000##000000
##BA56AE1.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5373B1
Deuteranopia (green-blind)
#7181AB
Tritanopia (blue-blind)
#C15D7A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba56ae;
/* rgb */ color: rgb(186, 86, 174);
/* oklch */ color: oklch(60.8% 0.167 332.2);
Tailwind
colors: {
  custom: {
    50: '#d18ac6',
    500: '#ba56ae',
    950: '#000000',
  },
}
SCSS
$custom: #ba56ae;
$custom-light: #d18ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56ae",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 174
  },
  "hsl": {
    "h": 307.2,
    "s": 42.017,
    "l": 53.333
  },
  "oklch": {
    "l": 0.60772,
    "c": 0.16749,
    "h": 332.2
  },
  "luminance": 0.20151
}

Semantic roles & 50–950 ramp

primary
#BA56AE
secondary
#A0CBA6
accent
#D26556
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C13
muted
#837D82

Preview Lab

Preview with #BA56AE

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

Preview Lab → · Contrast checker → · Palette generator →

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