#BA56E4#BA56E4

#BA56E4 is a light, highly saturated purple. Relative luminance 0.227; OKLCH L 63.7% C 0.217 H 314.5°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#BA56E4
RGBrgb(186, 86, 228)
HSLhsl(282, 72%, 62%)
HSVhsv(282, 62%, 89%)
CMYKcmyk(18.4%, 62.3%, 0%, 10.6%)
CIE-LABlab(54.76, 61.98, -55.25)
CIE-LCHlch(54.76, 83.03, 318.29°)
OKLaboklab(63.67% 0.1523 -0.1551)
OKLCHoklch(63.67% 0.217 314.5)
XYZxyz(37.5788, 22.6973, 75.7852)
Luminance0.2270 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56E4 #80E456
analogous
#7356E4 #BA56E4 #E456C7
triadic
#BA56E4 #E4BA56 #56E4BA
tetradic
#BA56E4 #E47356 #80E456 #56C7E4
square
#BA56E4 #E47356 #80E456 #56C7E4
split-complementary
#BA56E4 #C7E456 #56E473
monochromatic
#7C1AA5 #A423DA #BA56E4 #D08BEC #E5C0F5

Accessibility & contrast

On white

3.79
#BA56E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#BA56E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56E4
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56E4#FFFFFF#000000##000000
##BA56E41.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F7DE8
Deuteranopia (green-blind)
#5286E1
Tritanopia (blue-blind)
#B67095
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ba56e4;
/* rgb */ color: rgb(186, 86, 228);
/* oklch */ color: oklch(63.7% 0.217 314.5);
Tailwind
colors: {
  custom: {
    50: '#d28bed',
    500: '#ba56e4',
    950: '#000000',
  },
}
SCSS
$custom: #ba56e4;
$custom-light: #d28bed;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56e4",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 228
  },
  "hsl": {
    "h": 282.254,
    "s": 72.449,
    "l": 61.569
  },
  "oklch": {
    "l": 0.63673,
    "c": 0.21737,
    "h": 314.5
  },
  "luminance": 0.22696
}

Semantic roles & 50–950 ramp

primary
#BA56E4
secondary
#C0E5B0
accent
#D5114B
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA56E4

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

Preview Lab → · Contrast checker → · Palette generator →

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