#BA46A7#BA46A7

#BA46A7 is a mid, vivid purple. Relative luminance 0.176; OKLCH L 58.5% C 0.186 H 334.7°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#BA46A7
RGBrgb(186, 70, 167)
HSLhsl(310, 46%, 50%)
HSVhsv(310, 62%, 73%)
CMYKcmyk(0%, 62.4%, 10.2%, 27.1%)
CIE-LABlab(49.02, 57.94, -29.20)
CIE-LCHlch(49.02, 64.88, 333.25°)
OKLaboklab(58.48% 0.1682 -0.0795)
OKLCHoklch(58.48% 0.186 334.7)
XYZxyz(29.4151, 17.6118, 38.4019)
Luminance0.1761 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA46A7 #46BA59
analogous
#9346BA #BA46A7 #BA466D
triadic
#BA46A7 #A7BA46 #46A7BA
tetradic
#BA46A7 #BA9346 #46BA59 #466DBA
square
#BA46A7 #BA9346 #46BA59 #466DBA
split-complementary
#BA46A7 #6DBA46 #46BA93
monochromatic
#612457 #8E357F #BA46A7 #CB73BC #DB9FD1

Accessibility & contrast

On white

4.64
#BA46A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#BA46A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA46A7
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA46A7#FFFFFF#000000##FFFFFF
##BA46A71.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#456AAA
Deuteranopia (green-blind)
#6A7BA4
Tritanopia (blue-blind)
#C34E70
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba46a7;
/* rgb */ color: rgb(186, 70, 167);
/* oklch */ color: oklch(58.5% 0.186 334.7);
Tailwind
colors: {
  custom: {
    50: '#d281c1',
    500: '#ba46a7',
    950: '#000000',
  },
}
SCSS
$custom: #ba46a7;
$custom-light: #d281c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba46a7",
  "rgb": {
    "r": 186,
    "g": 70,
    "b": 167
  },
  "hsl": {
    "h": 309.828,
    "s": 45.669,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58476,
    "c": 0.18601,
    "h": 334.7
  },
  "luminance": 0.17609
}

Semantic roles & 50–950 ramp

primary
#BA46A7
secondary
#94C89C
accent
#D56852
background
#FDF8FB
surface
#FAEFF7
border
#D3CAD0
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA46A7

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

Preview Lab → · Contrast checker → · Palette generator →

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