#BA54AF#BA54AF

#BA54AF is a mid, vivid purple. Relative luminance 0.199; OKLCH L 60.6% C 0.171 H 331.8°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#BA54AF
RGBrgb(186, 84, 175)
HSLhsl(306, 43%, 53%)
HSVhsv(306, 55%, 73%)
CMYKcmyk(0%, 54.8%, 5.9%, 27.1%)
CIE-LABlab(51.70, 52.96, -29.72)
CIE-LCHlch(51.70, 60.73, 330.70°)
OKLaboklab(60.56% 0.1511 -0.0811)
OKLCHoklch(60.56% 0.171 331.8)
XYZxyz(31.1578, 19.8770, 42.7447)
Luminance0.1988 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA54AF #54BA5F
analogous
#9254BA #BA54AF #BA547C
triadic
#BA54AF #AFBA54 #54AFBA
tetradic
#BA54AF #BA9254 #54BA5F #547CBA
square
#BA54AF #BA9254 #54BA5F #547CBA
split-complementary
#BA54AF #7CBA54 #54BA92
monochromatic
#692A62 #953C8B #BA54AF #CC80C3 #DDABD8

Accessibility & contrast

On white

4.22
#BA54AF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#BA54AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA54AF
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA54AF#FFFFFF#000000##000000
##BA54AF1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5072B2
Deuteranopia (green-blind)
#6F80AC
Tritanopia (blue-blind)
#C15C7A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba54af;
/* rgb */ color: rgb(186, 84, 175);
/* oklch */ color: oklch(60.6% 0.171 331.8);
Tailwind
colors: {
  custom: {
    50: '#d189c7',
    500: '#ba54af',
    950: '#000000',
  },
}
SCSS
$custom: #ba54af;
$custom-light: #d189c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba54af",
  "rgb": {
    "r": 186,
    "g": 84,
    "b": 175
  },
  "hsl": {
    "h": 306.471,
    "s": 42.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.60557,
    "c": 0.17149,
    "h": 331.8
  },
  "luminance": 0.19875
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA54AF

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

Preview Lab → · Contrast checker → · Palette generator →

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