#BA57C0#BA57C0

#BA57C0 is a mid, vivid purple. Relative luminance 0.211; OKLCH L 61.8% C 0.182 H 325.3°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#BA57C0
RGBrgb(186, 87, 192)
HSLhsl(297, 45%, 55%)
HSVhsv(297, 55%, 75%)
CMYKcmyk(3.1%, 54.7%, 0%, 24.7%)
CIE-LABlab(53.02, 54.54, -37.51)
CIE-LCHlch(53.02, 66.19, 325.48°)
OKLaboklab(61.79% 0.1494 -0.1035)
OKLCHoklch(61.79% 0.182 325.3)
XYZxyz(33.1716, 21.0631, 52.1773)
Luminance0.2106 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57C0 #5DC057
analogous
#8557C0 #BA57C0 #C05792
triadic
#BA57C0 #C0BA57 #57C0BA
tetradic
#BA57C0 #C08557 #5DC057 #5792C0
square
#BA57C0 #C08557 #5DC057 #5792C0
split-complementary
#BA57C0 #92C057 #57C085
monochromatic
#6E2B72 #993B9E #BA57C0 #CC84D1 #DFB0E1

Accessibility & contrast

On white

4.03
#BA57C0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#BA57C0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA57C0
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA57C0#FFFFFF#000000##000000
##BA57C01.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4977C3
Deuteranopia (green-blind)
#6983BD
Tritanopia (blue-blind)
#BE6483
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ba57c0;
/* rgb */ color: rgb(186, 87, 192);
/* oklch */ color: oklch(61.8% 0.182 325.3);
Tailwind
colors: {
  custom: {
    50: '#d18bd3',
    500: '#ba57c0',
    950: '#000000',
  },
}
SCSS
$custom: #ba57c0;
$custom-light: #d18bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57c0",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 192
  },
  "hsl": {
    "h": 296.571,
    "s": 45.455,
    "l": 54.706
  },
  "oklch": {
    "l": 0.61786,
    "c": 0.18173,
    "h": 325.3
  },
  "luminance": 0.21061
}

Semantic roles & 50–950 ramp

primary
#BA57C0
secondary
#A6D0A3
accent
#D5535A
background
#FDF8FD
surface
#FAF0FA
border
#D3CBD3
text
#140C14
muted
#837D83

Preview Lab

Preview with #BA57C0

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

Preview Lab → · Contrast checker → · Palette generator →

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