#BA56E8#BA56E8

#BA56E8 is a light, highly saturated purple. Relative luminance 0.229; OKLCH L 63.9% C 0.221 H 313.5°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#BA56E8
RGBrgb(186, 86, 232)
HSLhsl(281, 76%, 62%)
HSVhsv(281, 63%, 91%)
CMYKcmyk(19.8%, 62.9%, 0%, 9%)
CIE-LABlab(54.99, 62.80, -57.12)
CIE-LCHlch(54.99, 84.89, 317.71°)
OKLaboklab(63.92% 0.1522 -0.1606)
OKLCHoklch(63.92% 0.221 313.5)
XYZxyz(38.1405, 22.9220, 78.7435)
Luminance0.2292 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56E8 #84E856
analogous
#7156E8 #BA56E8 #E856CD
triadic
#BA56E8 #E8BA56 #56E8BA
tetradic
#BA56E8 #E87156 #84E856 #56CDE8
square
#BA56E8 #E87156 #84E856 #56CDE8
split-complementary
#BA56E8 #CDE856 #56E871
monochromatic
#7D17AC #A420E1 #BA56E8 #D08CEF #E6C2F7

Accessibility & contrast

On white

3.76
#BA56E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#BA56E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56E8
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56E8#FFFFFF#000000##000000
##BA56E81.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#157EEC
Deuteranopia (green-blind)
#4E86E5
Tritanopia (blue-blind)
#B67298
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #ba56e8;
/* rgb */ color: rgb(186, 86, 232);
/* oklch */ color: oklch(63.9% 0.221 313.5);
Tailwind
colors: {
  custom: {
    50: '#d28bf0',
    500: '#ba56e8',
    950: '#000000',
  },
}
SCSS
$custom: #ba56e8;
$custom-light: #d28bf0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56e8",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 232
  },
  "hsl": {
    "h": 281.096,
    "s": 76.042,
    "l": 62.353
  },
  "oklch": {
    "l": 0.63916,
    "c": 0.22126,
    "h": 313.5
  },
  "luminance": 0.22921
}

Semantic roles & 50–950 ramp

primary
#BA56E8
secondary
#C3E8B2
accent
#D80D4D
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA56E8

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

Preview Lab → · Contrast checker → · Palette generator →

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