#BA56E6#BA56E6

#BA56E6 is a light, highly saturated purple. Relative luminance 0.228; OKLCH L 63.8% C 0.219 H 314.0°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#BA56E6
RGBrgb(186, 86, 230)
HSLhsl(282, 74%, 62%)
HSVhsv(282, 63%, 90%)
CMYKcmyk(19.1%, 62.6%, 0%, 9.8%)
CIE-LABlab(54.88, 62.39, -56.18)
CIE-LCHlch(54.88, 83.96, 317.99°)
OKLaboklab(63.79% 0.1522 -0.1579)
OKLCHoklch(63.79% 0.219 314)
XYZxyz(37.8580, 22.8090, 77.2559)
Luminance0.2281 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56E6 #82E656
analogous
#7256E6 #BA56E6 #E656CA
triadic
#BA56E6 #E6BA56 #56E6BA
tetradic
#BA56E6 #E67256 #82E656 #56CAE6
square
#BA56E6 #E67256 #82E656 #56CAE6
split-complementary
#BA56E6 #CAE656 #56E672
monochromatic
#7D19A9 #A421DE #BA56E6 #D08BEE #E6C1F6

Accessibility & contrast

On white

3.78
#BA56E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#BA56E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56E6
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56E6#FFFFFF#000000##000000
##BA56E61.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A7EEA
Deuteranopia (green-blind)
#5086E3
Tritanopia (blue-blind)
#B67196
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ba56e6;
/* rgb */ color: rgb(186, 86, 230);
/* oklch */ color: oklch(63.8% 0.219 314.0);
Tailwind
colors: {
  custom: {
    50: '#d28bef',
    500: '#ba56e6',
    950: '#000000',
  },
}
SCSS
$custom: #ba56e6;
$custom-light: #d28bef;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56e6",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 230
  },
  "hsl": {
    "h": 281.667,
    "s": 74.227,
    "l": 61.961
  },
  "oklch": {
    "l": 0.63794,
    "c": 0.21931,
    "h": 314
  },
  "luminance": 0.22808
}

Semantic roles & 50–950 ramp

primary
#BA56E6
secondary
#C2E6B1
accent
#D60F4C
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA56E6

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

Preview Lab → · Contrast checker → · Palette generator →

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