#BA57DE#BA57DE

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

Color values

HEX#BA57DE
RGBrgb(186, 87, 222)
HSLhsl(284, 67%, 61%)
HSVhsv(284, 61%, 87%)
CMYKcmyk(16.2%, 60.8%, 0%, 12.9%)
CIE-LABlab(54.59, 60.31, -52.14)
CIE-LCHlch(54.59, 79.72, 319.16°)
OKLaboklab(63.44% 0.1511 -0.146)
OKLCHoklch(63.44% 0.21 316)
XYZxyz(36.8407, 22.5307, 71.5013)
Luminance0.2253 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57DE #7BDE57
analogous
#7657DE #BA57DE #DE57BE
triadic
#BA57DE #DEBA57 #57DEBA
tetradic
#BA57DE #DE7657 #7BDE57 #57BEDE
square
#BA57DE #DE7657 #7BDE57 #57BEDE
split-complementary
#BA57DE #BEDE57 #57DE76
monochromatic
#7B1F9C #A329CF #BA57DE #CF8AE8 #E4BDF2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA57DE#FFFFFF#000000##000000
##BA57DE1.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)
#2C7DE2
Deuteranopia (green-blind)
#5785DB
Tritanopia (blue-blind)
#B86F93
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ba57de;
/* rgb */ color: rgb(186, 87, 222);
/* oklch */ color: oklch(63.4% 0.210 316.0);
Tailwind
colors: {
  custom: {
    50: '#d28ce9',
    500: '#ba57de',
    950: '#000000',
  },
}
SCSS
$custom: #ba57de;
$custom-light: #d28ce9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57de",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 222
  },
  "hsl": {
    "h": 284,
    "s": 67.164,
    "l": 60.588
  },
  "oklch": {
    "l": 0.63437,
    "c": 0.21015,
    "h": 316
  },
  "luminance": 0.22529
}

Semantic roles & 50–950 ramp

primary
#BA57DE
secondary
#BCE2AF
accent
#CF1648
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA57DE

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

Preview Lab → · Contrast checker → · Palette generator →

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