#BA56E1#BA56E1

#BA56E1 is a light, highly saturated purple. Relative luminance 0.225; OKLCH L 63.5% C 0.214 H 315.2°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#BA56E1
RGBrgb(186, 86, 225)
HSLhsl(283, 70%, 61%)
HSVhsv(283, 62%, 88%)
CMYKcmyk(17.3%, 61.8%, 0%, 11.8%)
CIE-LABlab(54.59, 61.37, -53.83)
CIE-LCHlch(54.59, 81.64, 318.75°)
OKLaboklab(63.49% 0.1523 -0.151)
OKLCHoklch(63.49% 0.214 315.2)
XYZxyz(37.1659, 22.5322, 73.6109)
Luminance0.2253 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56E1 #7DE156
analogous
#7456E1 #BA56E1 #E156C3
triadic
#BA56E1 #E1BA56 #56E1BA
tetradic
#BA56E1 #E17456 #7DE156 #56C3E1
square
#BA56E1 #E17456 #7DE156 #56C3E1
split-complementary
#BA56E1 #C3E156 #56E174
monochromatic
#7B1CA0 #A326D4 #BA56E1 #CF8AEA #E4BEF3

Accessibility & contrast

On white

3.81
#BA56E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#BA56E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56E1
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56E1#FFFFFF#000000##000000
##BA56E11.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#257DE5
Deuteranopia (green-blind)
#5485DE
Tritanopia (blue-blind)
#B76F94
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ba56e1;
/* rgb */ color: rgb(186, 86, 225);
/* oklch */ color: oklch(63.5% 0.214 315.2);
Tailwind
colors: {
  custom: {
    50: '#d28beb',
    500: '#ba56e1',
    950: '#000000',
  },
}
SCSS
$custom: #ba56e1;
$custom-light: #d28beb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56e1",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 225
  },
  "hsl": {
    "h": 283.165,
    "s": 69.849,
    "l": 60.98
  },
  "oklch": {
    "l": 0.63493,
    "c": 0.21445,
    "h": 315.2
  },
  "luminance": 0.22531
}

Semantic roles & 50–950 ramp

primary
#BA56E1
secondary
#BEE4AF
accent
#D21449
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA56E1

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

Preview Lab → · Contrast checker → · Palette generator →

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