#BA56CC#BA56CC

#BA56CC is a light, vivid purple. Relative luminance 0.215; OKLCH L 62.3% C 0.194 H 321.3°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#BA56CC
RGBrgb(186, 86, 204)
HSLhsl(291, 54%, 57%)
HSVhsv(291, 58%, 80%)
CMYKcmyk(8.8%, 57.8%, 0%, 20%)
CIE-LABlab(53.44, 57.25, -43.72)
CIE-LCHlch(53.44, 72.04, 322.63°)
OKLaboklab(62.29% 0.1517 -0.1215)
OKLCHoklch(62.29% 0.194 321.3)
XYZxyz(34.4753, 21.4559, 59.4405)
Luminance0.2145 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56CC #68CC56
analogous
#7F56CC #BA56CC #CC56A3
triadic
#BA56CC #CCBA56 #56CCBA
tetradic
#BA56CC #CC7F56 #68CC56 #56A3CC
square
#BA56CC #CC7F56 #68CC56 #56A3CC
split-complementary
#BA56CC #A3CC56 #56CC7F
monochromatic
#732781 #9D35B0 #BA56CC #CD85DA #E0B4E8

Accessibility & contrast

On white

3.97
#BA56CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#BA56CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56CC
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56CC#FFFFFF#000000##000000
##BA56CC1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F78D0
Deuteranopia (green-blind)
#6283C9
Tritanopia (blue-blind)
#BC6889
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ba56cc;
/* rgb */ color: rgb(186, 86, 204);
/* oklch */ color: oklch(62.3% 0.194 321.3);
Tailwind
colors: {
  custom: {
    50: '#d18bdc',
    500: '#ba56cc',
    950: '#000000',
  },
}
SCSS
$custom: #ba56cc;
$custom-light: #d18bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56cc",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 204
  },
  "hsl": {
    "h": 290.847,
    "s": 53.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.62293,
    "c": 0.19438,
    "h": 321.3
  },
  "luminance": 0.21454
}

Semantic roles & 50–950 ramp

primary
#BA56CC
secondary
#AED7A7
accent
#DD4B61
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA56CC

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

Preview Lab → · Contrast checker → · Palette generator →

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