#BA57B2#BA57B2

#BA57B2 is a mid, vivid purple. Relative luminance 0.205; OKLCH L 61.1% C 0.169 H 330.6°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#BA57B2
RGBrgb(186, 87, 178)
HSLhsl(305, 42%, 54%)
HSVhsv(305, 53%, 73%)
CMYKcmyk(0%, 53.2%, 4.3%, 27.1%)
CIE-LABlab(52.37, 52.04, -30.43)
CIE-LCHlch(52.37, 60.28, 329.68°)
OKLaboklab(61.09% 0.1475 -0.0832)
OKLCHoklch(61.09% 0.169 330.6)
XYZxyz(31.6935, 20.4719, 44.3930)
Luminance0.2047 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57B2 #57BA5F
analogous
#9057BA #BA57B2 #BA5780
triadic
#BA57B2 #B2BA57 #57B2BA
tetradic
#BA57B2 #BA9057 #57BA5F #5780BA
square
#BA57B2 #BA9057 #57BA5F #5780BA
split-complementary
#BA57B2 #80BA57 #57BA90
monochromatic
#6B2C66 #963E8F #BA57B2 #CC82C6 #DEAEDA

Accessibility & contrast

On white

4.12
#BA57B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#BA57B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA57B2
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA57B2#FFFFFF#000000##000000
##BA57B21.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5274B5
Deuteranopia (green-blind)
#7082AF
Tritanopia (blue-blind)
#C0607D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba57b2;
/* rgb */ color: rgb(186, 87, 178);
/* oklch */ color: oklch(61.1% 0.169 330.6);
Tailwind
colors: {
  custom: {
    50: '#d18bc9',
    500: '#ba57b2',
    950: '#000000',
  },
}
SCSS
$custom: #ba57b2;
$custom-light: #d18bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57b2",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 178
  },
  "hsl": {
    "h": 304.848,
    "s": 41.772,
    "l": 53.529
  },
  "oklch": {
    "l": 0.61094,
    "c": 0.1693,
    "h": 330.6
  },
  "luminance": 0.2047
}

Semantic roles & 50–950 ramp

primary
#BA57B2
secondary
#A1CCA5
accent
#D26056
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C13
muted
#837D82

Preview Lab

Preview with #BA57B2

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

Preview Lab → · Contrast checker → · Palette generator →

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