#BA57D2#BA57D2

#BA57D2 is a light, vivid purple. Relative luminance 0.219; OKLCH L 62.7% C 0.199 H 319.4°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#BA57D2
RGBrgb(186, 87, 210)
HSLhsl(288, 58%, 58%)
HSVhsv(288, 59%, 82%)
CMYKcmyk(11.4%, 58.6%, 0%, 17.6%)
CIE-LABlab(53.93, 57.94, -46.38)
CIE-LCHlch(53.93, 74.21, 321.32°)
OKLaboklab(62.75% 0.1508 -0.1292)
OKLCHoklch(62.75% 0.199 319.4)
XYZxyz(35.2893, 21.9101, 63.3305)
Luminance0.2191 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57D2 #6FD257
analogous
#7C57D2 #BA57D2 #D257AC
triadic
#BA57D2 #D2BA57 #57D2BA
tetradic
#BA57D2 #D27C57 #6FD257 #57ACD2
square
#BA57D2 #D27C57 #6FD257 #57ACD2
split-complementary
#BA57D2 #ACD257 #57D27C
monochromatic
#76258A #9F32BA #BA57D2 #CE87DF #E2B8EC

Accessibility & contrast

On white

3.90
#BA57D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#BA57D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA57D2
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA57D2#FFFFFF#000000##000000
##BA57D21.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B7AD6
Deuteranopia (green-blind)
#5F84CF
Tritanopia (blue-blind)
#BA6A8C
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #ba57d2;
/* rgb */ color: rgb(186, 87, 210);
/* oklch */ color: oklch(62.7% 0.199 319.4);
Tailwind
colors: {
  custom: {
    50: '#d28be0',
    500: '#ba57d2',
    950: '#000000',
  },
}
SCSS
$custom: #ba57d2;
$custom-light: #d28be0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57d2",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 210
  },
  "hsl": {
    "h": 288.293,
    "s": 57.746,
    "l": 58.235
  },
  "oklch": {
    "l": 0.6275,
    "c": 0.19859,
    "h": 319.4
  },
  "luminance": 0.21909
}

Semantic roles & 50–950 ramp

primary
#BA57D2
secondary
#B3DBAA
accent
#E14765
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA57D2

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

Preview Lab → · Contrast checker → · Palette generator →

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