#BA45A6#BA45A6

#BA45A6 is a mid, vivid pink. Relative luminance 0.174; OKLCH L 58.3% C 0.187 H 335.1°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#BA45A6
RGBrgb(186, 69, 166)
HSLhsl(310, 46%, 50%)
HSVhsv(310, 63%, 73%)
CMYKcmyk(0%, 62.9%, 10.8%, 27.1%)
CIE-LABlab(48.82, 58.20, -28.92)
CIE-LCHlch(48.82, 64.99, 333.58°)
OKLaboklab(58.32% 0.1693 -0.0787)
OKLCHoklch(58.32% 0.187 335.1)
XYZxyz(29.2610, 17.4509, 37.8962)
Luminance0.1745 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA45A6 #45BA59
analogous
#9345BA #BA45A6 #BA456C
triadic
#BA45A6 #A6BA45 #45A6BA
tetradic
#BA45A6 #BA9345 #45BA59 #456CBA
square
#BA45A6 #BA9345 #45BA59 #456CBA
split-complementary
#BA45A6 #6CBA45 #45BA93
monochromatic
#612456 #8D347E #BA45A6 #CB72BB #DB9ED1

Accessibility & contrast

On white

4.68
#BA45A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#BA45A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA45A6
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA45A6#FFFFFF#000000##FFFFFF
##BA45A61.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4569A9
Deuteranopia (green-blind)
#6A7AA3
Tritanopia (blue-blind)
#C34C6F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba45a6;
/* rgb */ color: rgb(186, 69, 166);
/* oklch */ color: oklch(58.3% 0.187 335.1);
Tailwind
colors: {
  custom: {
    50: '#d280c0',
    500: '#ba45a6',
    950: '#000000',
  },
}
SCSS
$custom: #ba45a6;
$custom-light: #d280c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba45a6",
  "rgb": {
    "r": 186,
    "g": 69,
    "b": 166
  },
  "hsl": {
    "h": 310.256,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.58317,
    "c": 0.18667,
    "h": 335.1
  },
  "luminance": 0.17449
}

Semantic roles & 50–950 ramp

primary
#BA45A6
secondary
#93C89C
accent
#D66952
background
#FDF8FB
surface
#FAEFF7
border
#D3CAD0
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA45A6

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

Preview Lab → · Contrast checker → · Palette generator →

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