#BA54B3#BA54B3

#BA54B3 is a mid, vivid purple. Relative luminance 0.200; OKLCH L 60.7% C 0.175 H 330.2°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#BA54B3
RGBrgb(186, 84, 179)
HSLhsl(304, 43%, 53%)
HSVhsv(304, 55%, 73%)
CMYKcmyk(0%, 54.8%, 3.8%, 27.1%)
CIE-LABlab(51.88, 53.64, -31.77)
CIE-LCHlch(51.88, 62.34, 329.36°)
OKLaboklab(60.75% 0.1517 -0.087)
OKLCHoklch(60.75% 0.175 330.2)
XYZxyz(31.5564, 20.0365, 44.8444)
Luminance0.2003 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA54B3 #54BA5B
analogous
#8E54BA #BA54B3 #BA5480
triadic
#BA54B3 #B3BA54 #54B3BA
tetradic
#BA54B3 #BA8E54 #54BA5B #5480BA
square
#BA54B3 #BA8E54 #54BA5B #5480BA
split-complementary
#BA54B3 #80BA54 #54BA8E
monochromatic
#692A65 #953C8F #BA54B3 #CC80C6 #DDABDA

Accessibility & contrast

On white

4.19
#BA54B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#BA54B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA54B3
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA54B3#FFFFFF#000000##000000
##BA54B31.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E73B6
Deuteranopia (green-blind)
#6D81B0
Tritanopia (blue-blind)
#C05D7C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba54b3;
/* rgb */ color: rgb(186, 84, 179);
/* oklch */ color: oklch(60.7% 0.175 330.2);
Tailwind
colors: {
  custom: {
    50: '#d189ca',
    500: '#ba54b3',
    950: '#000000',
  },
}
SCSS
$custom: #ba54b3;
$custom-light: #d189ca;
$custom-dark: #000000;
JSON
{
  "hex": "#ba54b3",
  "rgb": {
    "r": 186,
    "g": 84,
    "b": 179
  },
  "hsl": {
    "h": 304.118,
    "s": 42.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.60749,
    "c": 0.17487,
    "h": 330.2
  },
  "luminance": 0.20034
}

Semantic roles & 50–950 ramp

primary
#BA54B3
secondary
#9FCBA2
accent
#D25E56
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C13
muted
#837D82

Preview Lab

Preview with #BA54B3

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

Preview Lab → · Contrast checker → · Palette generator →

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