#BA46AC#BA46AC

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

Color values

HEX#BA46AC
RGBrgb(186, 70, 172)
HSLhsl(307, 46%, 50%)
HSVhsv(307, 62%, 73%)
CMYKcmyk(0%, 62.4%, 7.5%, 27.1%)
CIE-LABlab(49.25, 58.74, -31.78)
CIE-LCHlch(49.25, 66.79, 331.58°)
OKLaboklab(58.72% 0.1688 -0.0869)
OKLCHoklch(58.72% 0.19 332.8)
XYZxyz(29.8863, 17.8002, 40.8834)
Luminance0.1780 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA46AC #46BA54
analogous
#8E46BA #BA46AC #BA4672
triadic
#BA46AC #ACBA46 #46ACBA
tetradic
#BA46AC #BA8E46 #46BA54 #4672BA
square
#BA46AC #BA8E46 #46BA54 #4672BA
split-complementary
#BA46AC #72BA46 #46BA8E
monochromatic
#61245A #8E3583 #BA46AC #CB73C0 #DB9FD4

Accessibility & contrast

On white

4.61
#BA46AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#BA46AC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA46AC
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA46AC#FFFFFF#000000##FFFFFF
##BA46AC1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#426AAF
Deuteranopia (green-blind)
#687BA9
Tritanopia (blue-blind)
#C25073
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba46ac;
/* rgb */ color: rgb(186, 70, 172);
/* oklch */ color: oklch(58.7% 0.190 332.8);
Tailwind
colors: {
  custom: {
    50: '#d281c5',
    500: '#ba46ac',
    950: '#000000',
  },
}
SCSS
$custom: #ba46ac;
$custom-light: #d281c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba46ac",
  "rgb": {
    "r": 186,
    "g": 70,
    "b": 172
  },
  "hsl": {
    "h": 307.241,
    "s": 45.669,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58721,
    "c": 0.18988,
    "h": 332.8
  },
  "luminance": 0.17798
}

Semantic roles & 50–950 ramp

primary
#BA46AC
secondary
#94C89A
accent
#D56252
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA46AC

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

Preview Lab → · Contrast checker → · Palette generator →

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