#BA56C8#BA56C8

#BA56C8 is a light, vivid purple. Relative luminance 0.213; OKLCH L 62.1% C 0.191 H 322.6°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#BA56C8
RGBrgb(186, 86, 200)
HSLhsl(293, 51%, 56%)
HSVhsv(293, 57%, 78%)
CMYKcmyk(7%, 57%, 0%, 21.6%)
CIE-LABlab(53.24, 56.49, -41.76)
CIE-LCHlch(53.24, 70.25, 323.53°)
OKLaboklab(62.08% 0.1514 -0.1158)
OKLCHoklch(62.08% 0.191 322.6)
XYZxyz(34.0018, 21.2665, 56.9462)
Luminance0.2127 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56C8 #64C856
analogous
#8156C8 #BA56C8 #C8569D
triadic
#BA56C8 #C8BA56 #56C8BA
tetradic
#BA56C8 #C88156 #64C856 #569DC8
square
#BA56C8 #C88156 #64C856 #569DC8
split-complementary
#BA56C8 #9DC856 #56C881
monochromatic
#71287B #9C37AA #BA56C8 #CD84D7 #E0B2E6

Accessibility & contrast

On white

4.00
#BA56C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#BA56C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56C8
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56C8#FFFFFF#000000##000000
##BA56C81.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4278CC
Deuteranopia (green-blind)
#6583C5
Tritanopia (blue-blind)
#BD6687
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ba56c8;
/* rgb */ color: rgb(186, 86, 200);
/* oklch */ color: oklch(62.1% 0.191 322.6);
Tailwind
colors: {
  custom: {
    50: '#d18bd9',
    500: '#ba56c8',
    950: '#000000',
  },
}
SCSS
$custom: #ba56c8;
$custom-light: #d18bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56c8",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 200
  },
  "hsl": {
    "h": 292.632,
    "s": 50.893,
    "l": 56.078
  },
  "oklch": {
    "l": 0.62077,
    "c": 0.19064,
    "h": 322.6
  },
  "luminance": 0.21265
}

Semantic roles & 50–950 ramp

primary
#BA56C8
secondary
#ABD4A5
accent
#DA4D5F
background
#FDF8FD
surface
#FAF0FA
border
#D3CBD3
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA56C8

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

Preview Lab → · Contrast checker → · Palette generator →

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