#BA57CC#BA57CC

#BA57CC is a light, vivid purple. Relative luminance 0.216; OKLCH L 62.4% C 0.193 H 321.3°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#BA57CC
RGBrgb(186, 87, 204)
HSLhsl(291, 53%, 57%)
HSVhsv(291, 57%, 80%)
CMYKcmyk(8.8%, 57.4%, 0%, 20%)
CIE-LABlab(53.62, 56.78, -43.45)
CIE-LCHlch(53.62, 71.50, 322.58°)
OKLaboklab(62.42% 0.1504 -0.1207)
OKLCHoklch(62.42% 0.193 321.3)
XYZxyz(34.5557, 21.6167, 59.4673)
Luminance0.2162 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57CC #69CC57
analogous
#7F57CC #BA57CC #CC57A4
triadic
#BA57CC #CCBA57 #57CCBA
tetradic
#BA57CC #CC7F57 #69CC57 #57A4CC
square
#BA57CC #CC7F57 #69CC57 #57A4CC
split-complementary
#BA57CC #A4CC57 #57CC7F
monochromatic
#732781 #9D36B0 #BA57CC #CD86DA #E1B5E9

Accessibility & contrast

On white

3.95
#BA57CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#BA57CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA57CC
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA57CC#FFFFFF#000000##000000
##BA57CC1.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4079D0
Deuteranopia (green-blind)
#6384C9
Tritanopia (blue-blind)
#BC6889
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ba57cc;
/* rgb */ color: rgb(186, 87, 204);
/* oklch */ color: oklch(62.4% 0.193 321.3);
Tailwind
colors: {
  custom: {
    50: '#d18bdc',
    500: '#ba57cc',
    950: '#000000',
  },
}
SCSS
$custom: #ba57cc;
$custom-light: #d18bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57cc",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 204
  },
  "hsl": {
    "h": 290.769,
    "s": 53.425,
    "l": 57.059
  },
  "oklch": {
    "l": 0.6242,
    "c": 0.19289,
    "h": 321.3
  },
  "luminance": 0.21615
}

Semantic roles & 50–950 ramp

primary
#BA57CC
secondary
#AFD7A8
accent
#DD4B61
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA57CC

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

Preview Lab → · Contrast checker → · Palette generator →

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