#BA54AE#BA54AE

#BA54AE is a mid, vivid purple. Relative luminance 0.198; OKLCH L 60.5% C 0.171 H 332.2°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#BA54AE
RGBrgb(186, 84, 174)
HSLhsl(307, 43%, 53%)
HSVhsv(307, 55%, 73%)
CMYKcmyk(0%, 54.8%, 6.5%, 27.1%)
CIE-LABlab(51.65, 52.79, -29.21)
CIE-LCHlch(51.65, 60.33, 331.04°)
OKLaboklab(60.51% 0.1509 -0.0797)
OKLCHoklch(60.51% 0.171 332.2)
XYZxyz(31.0599, 19.8378, 42.2293)
Luminance0.1984 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA54AE #54BA60
analogous
#9354BA #BA54AE #BA547B
triadic
#BA54AE #AEBA54 #54AEBA
tetradic
#BA54AE #BA9354 #54BA60 #547BBA
square
#BA54AE #BA9354 #54BA60 #547BBA
split-complementary
#BA54AE #7BBA54 #54BA93
monochromatic
#692A62 #953C8A #BA54AE #CC80C3 #DDABD7

Accessibility & contrast

On white

4.23
#BA54AE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#BA54AE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA54AE
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA54AE#FFFFFF#000000##000000
##BA54AE1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5172B1
Deuteranopia (green-blind)
#6F80AB
Tritanopia (blue-blind)
#C15C79
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba54ae;
/* rgb */ color: rgb(186, 84, 174);
/* oklch */ color: oklch(60.5% 0.171 332.2);
Tailwind
colors: {
  custom: {
    50: '#d189c6',
    500: '#ba54ae',
    950: '#000000',
  },
}
SCSS
$custom: #ba54ae;
$custom-light: #d189c6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba54ae",
  "rgb": {
    "r": 186,
    "g": 84,
    "b": 174
  },
  "hsl": {
    "h": 307.059,
    "s": 42.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.6051,
    "c": 0.17065,
    "h": 332.2
  },
  "luminance": 0.19836
}

Semantic roles & 50–950 ramp

primary
#BA54AE
secondary
#9FCBA4
accent
#D26456
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C13
muted
#837D82

Preview Lab

Preview with #BA54AE

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

Preview Lab → · Contrast checker → · Palette generator →

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