#BA45AE#BA45AE

#BA45AE is a mid, vivid purple. Relative luminance 0.178; OKLCH L 58.7% C 0.193 H 332.0°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#BA45AE
RGBrgb(186, 69, 174)
HSLhsl(306, 46%, 50%)
HSVhsv(306, 63%, 73%)
CMYKcmyk(0%, 62.9%, 6.5%, 27.1%)
CIE-LABlab(49.20, 59.48, -33.05)
CIE-LCHlch(49.20, 68.05, 330.95°)
OKLaboklab(58.71% 0.1703 -0.0905)
OKLCHoklch(58.71% 0.193 332)
XYZxyz(30.0178, 17.7536, 41.8820)
Luminance0.1775 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA45AE #45BA51
analogous
#8C45BA #BA45AE #BA4573
triadic
#BA45AE #AEBA45 #45AEBA
tetradic
#BA45AE #BA8C45 #45BA51 #4573BA
square
#BA45AE #BA8C45 #45BA51 #4573BA
split-complementary
#BA45AE #73BA45 #45BA8C
monochromatic
#61245A #8D3484 #BA45AE #CB72C1 #DB9ED5

Accessibility & contrast

On white

4.62
#BA45AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#BA45AE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA45AE
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA45AE#FFFFFF#000000##FFFFFF
##BA45AE1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#406AB1
Deuteranopia (green-blind)
#677BAB
Tritanopia (blue-blind)
#C15073
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba45ae;
/* rgb */ color: rgb(186, 69, 174);
/* oklch */ color: oklch(58.7% 0.193 332.0);
Tailwind
colors: {
  custom: {
    50: '#d281c6',
    500: '#ba45ae',
    950: '#000000',
  },
}
SCSS
$custom: #ba45ae;
$custom-light: #d281c6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba45ae",
  "rgb": {
    "r": 186,
    "g": 69,
    "b": 174
  },
  "hsl": {
    "h": 306.154,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.5871,
    "c": 0.19284,
    "h": 332
  },
  "luminance": 0.17751
}

Semantic roles & 50–950 ramp

primary
#BA45AE
secondary
#93C899
accent
#D66052
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA45AE

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

Preview Lab → · Contrast checker → · Palette generator →

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